projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cgroup: fix an error handling path in alloc_pagecache_max_30M()
[linux-2.6-microblaze.git]
/
tools
/
testing
/
selftests
/
cgroup
/
test_memcontrol.c
diff --git
a/tools/testing/selftests/cgroup/test_memcontrol.c
b/tools/testing/selftests/cgroup/test_memcontrol.c
index
6ab9431
..
44a974e
100644
(file)
--- a/
tools/testing/selftests/cgroup/test_memcontrol.c
+++ b/
tools/testing/selftests/cgroup/test_memcontrol.c
@@
-574,7
+574,7
@@
static int alloc_pagecache_max_30M(const char *cgroup, void *arg)
high = cg_read_long(cgroup, "memory.high");
max = cg_read_long(cgroup, "memory.max");
if (high != MB(30) && max != MB(30))
-
goto cleanup
;
+
return -1
;
fd = get_temp_fd();
if (fd < 0)