summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2016-06-21 13:06:24 -0400
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:04 +0300
commitf039bb0eae4923743ffcd7932fd519e2713458ec (patch)
treea89e4127f7cd52197dd25cb31fda68f96a6a1712 /tools/perf/scripts
parentc091fc3cb816ee387c842cba89fa08136c1574c8 (diff)
cgroup: allow NULL return from ss->css_alloc()
cgroup core expected css_alloc to return an ERR_PTR value on failure and caused NULL deref if it returned NULL. It's an easy mistake to make from an alloc function and there's no ambiguity in what's being indicated. Update css_create() so that it interprets NULL return from css_alloc as -ENOMEM. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions