projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa91d59
)
cgroup: Prevent theoretical nullptr deref in unit mask calculation
author
Chris Down
<chris@chrisdown.name>
Fri, 7 Jun 2019 05:28:10 +0000
(06:28 +0100)
committer
Chris Down
<chris@chrisdown.name>
Fri, 7 Jun 2019 05:33:53 +0000
(06:33 +0100)
src/core/cgroup.c
patch
|
blob
|
history
diff --git
a/src/core/cgroup.c
b/src/core/cgroup.c
index
a726385
..
0c885d5
100644
(file)
--- a/
src/core/cgroup.c
+++ b/
src/core/cgroup.c
@@
-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)