Files
linux/kernel
Tejun Heo 75d6026fd7 cgroup: set css->id to -1 during init
commit 8fa3b8d689 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: 01e586598b ("cgroup: release css->id after css_free")
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-08-10 11:49:27 +02:00
..
2016-06-24 10:18:17 -07:00
2015-11-04 08:23:51 -05:00
2016-08-10 11:49:27 +02:00
2015-11-23 09:44:58 +01:00
2015-11-05 19:34:48 -08:00