cgroup: fix an error handling path in alloc_pagecache_max_30M()
[linux-2.6-microblaze.git] / tools / testing / selftests / cgroup / test_memcontrol.c
index 6ab9431..44a974e 100644 (file)
@@ -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)