summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2016-05-26 15:42:13 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-10 11:49:27 +0200
commit75d6026fd7d605a668ef532193c2bae707a4316c (patch)
tree59acb92aad1257fb86ffc94ed9a25d50c72f8495 /drivers/power
parent8f808f122f445fe1b391d1ee047dadf16437c749 (diff)
cgroup: set css->id to -1 during init
commit 8fa3b8d689a54d6d04ff7803c724fb7aca6ce98e upstream. If percpu_ref initialization fails during css_create(), the free path can end up trying to free css->id of zero. As ID 0 is unused, it doesn't cause a critical breakage but it does trigger a warning message. Fix it by setting css->id to -1 from init_and_link_css(). Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Wenwei Tao <ww.tao0320@gmail.com> Fixes: 01e586598b22 ("cgroup: release css->id after css_free") Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions