X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=cgroup.c;h=629047b495b33c145ca545ac4856efdecaf78df5;hb=56c77c10f79d7be492aa0fb137786978c3596682;hp=4fab977aeb8c3ddadadf1680692d7bf5210d70dd;hpb=971caeb177d3bc4f65fa31381bbfb83710bfc690;p=fio.git diff --git a/cgroup.c b/cgroup.c index 4fab977a..629047b4 100644 --- a/cgroup.c +++ b/cgroup.c @@ -5,7 +5,6 @@ #include #include #include -#include #include "fio.h" #include "flist.h" #include "cgroup.h" @@ -148,6 +147,9 @@ int cgroup_setup(struct thread_data *td, struct flist_head *clist, char **mnt) { char *root; + if (!clist) + return 1; + if (!*mnt) { *mnt = find_cgroup_mnt(td); if (!*mnt)