projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Simplify num2str()
[fio.git]
/
cgroup.c
diff --git
a/cgroup.c
b/cgroup.c
index 4fab977aeb8c3ddadadf1680692d7bf5210d70dd..629047b495b33c145ca545ac4856efdecaf78df5 100644
(file)
--- a/
cgroup.c
+++ b/
cgroup.c
@@
-5,7
+5,6
@@
#include <stdlib.h>
#include <mntent.h>
#include <sys/stat.h>
-#include <sys/types.h>
#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)