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: remove racy check in test_memcg_sock()
[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
31d5c3f
..
6d3aace
100644
(file)
--- a/
tools/testing/selftests/cgroup/test_memcontrol.c
+++ b/
tools/testing/selftests/cgroup/test_memcontrol.c
@@
-1102,9
+1102,6
@@
static int tcp_client(const char *cgroup, unsigned short port)
if (current < 0 || sock < 0)
goto close_sk;
- if (current < sock)
- goto close_sk;
-
if (values_close(current, sock, 10)) {
ret = KSFT_PASS;
break;