cgroup: fix pointer check in css_rstat_init()
authorJP Kobryn <inwardvessel@gmail.com>
Mon, 21 Apr 2025 16:51:17 +0000 (09:51 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 21 Apr 2025 18:27:33 +0000 (08:27 -1000)
commit7efbc8f2f9b3eed3ffc6560abf8305859f2153d3
tree4fb9f39e8581b2cde1a22be5125361aced2027b6
parent86888c7bd117c29eab169c37e5f6bbbf583da983
cgroup: fix pointer check in css_rstat_init()

In css_rstat_init() allocations are done for the cgroup's pointers
rstat_cpu and rstat_base_cpu. Make sure the allocation checks are
consistent with what they are allocating.

Signed-off-by: JP Kobryn <inwardvessel@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/rstat.c