mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
cgroup: fix possible NULL pointer deref.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -177,7 +177,7 @@ int cgroup_service(char *name, int pid, struct cgroup *cg)
|
||||
group = cg->name;
|
||||
}
|
||||
|
||||
return cgroup_leaf_init(group, name, pid, cg->cfg);
|
||||
return cgroup_leaf_init(group, name, pid, cg ? cg->cfg : NULL);
|
||||
}
|
||||
|
||||
static void append_ctrl(char *ctrl)
|
||||
|
||||
Reference in New Issue
Block a user