diff options
| author | Tejun Heo <[email protected]> | 2016-05-26 19:42:13 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2016-06-16 21:59:35 +0000 |
| commit | 8fa3b8d689a54d6d04ff7803c724fb7aca6ce98e (patch) | |
| tree | c3da33dd0e95d606779ece7a984827dd530c660f /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | cgroup: remove redundant cleanup in css_create (diff) | |
| download | kernel-8fa3b8d689a54d6d04ff7803c724fb7aca6ce98e.tar.gz kernel-8fa3b8d689a54d6d04ff7803c724fb7aca6ce98e.zip | |
cgroup: set css->id to -1 during init
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 <[email protected]>
Cc: Wenwei Tao <[email protected]>
Fixes: 01e586598b22 ("cgroup: release css->id after css_free")
Cc: [email protected] # v4.0+
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
