Skip to content

Commit

Permalink
cgroup: fix cgroup_css() invocation in css_from_id()
Browse files Browse the repository at this point in the history
ca8bdca ("cgroup: make cgroup_css() take cgroup_subsys * instead
and allow NULL subsys") missed one conversion in css_from_id(), which
was newly added.  As css_from_id() doesn't have any user yet, this
doesn't break anything other than generating a build warning.

Convert it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
  • Loading branch information
Tejun Heo committed Aug 27, 2013
1 parent 7c918cb commit d162596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -5729,7 +5729,7 @@ struct cgroup_subsys_state *css_from_id(int id, struct cgroup_subsys *ss)

cgrp = idr_find(&ss->root->cgroup_idr, id);
if (cgrp)
return cgroup_css(cgrp, ss->subsys_id);
return cgroup_css(cgrp, ss);
return NULL;
}

Expand Down

0 comments on commit d162596

Please sign in to comment.