mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
cgroup: Prevent theoretical nullptr deref in unit mask calculation
This commit is contained in:
@@ -1378,6 +1378,8 @@ static CGroupMask unit_get_cgroup_mask(Unit *u) {
|
||||
|
||||
c = unit_get_cgroup_context(u);
|
||||
|
||||
assert(c);
|
||||
|
||||
/* Figure out which controllers we need, based on the cgroup context object */
|
||||
|
||||
if (c->cpu_accounting)
|
||||
|
||||
Reference in New Issue
Block a user