summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_netcnt.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2019-01-28 08:13:52 +0100
committerGreg Kroah-Hartman2019-01-28 08:13:52 +0100
commitfdddcfd9c93c6db006004fa5ba7fd9380e721c3f (patch)
tree4d029f3bd29be07eac87bcfad3bd7e3012fb9428 /tools/testing/selftests/bpf/test_netcnt.c
parentmbcs: add .owner to mbcs struct file_operations (diff)
parentLinux 5.0-rc4 (diff)
downloadkernel-qcow2-linux-fdddcfd9c93c6db006004fa5ba7fd9380e721c3f.tar.gz
kernel-qcow2-linux-fdddcfd9c93c6db006004fa5ba7fd9380e721c3f.tar.xz
kernel-qcow2-linux-fdddcfd9c93c6db006004fa5ba7fd9380e721c3f.zip
Merge 5.0-rc4 into char-misc-next
We need the char-misc fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/bpf/test_netcnt.c')
-rw-r--r--tools/testing/selftests/bpf/test_netcnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_netcnt.c b/tools/testing/selftests/bpf/test_netcnt.c
index 44ed7f29f8ab..c1da5404454a 100644
--- a/tools/testing/selftests/bpf/test_netcnt.c
+++ b/tools/testing/selftests/bpf/test_netcnt.c
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
/* Create a cgroup, get fd, and join it */
cgroup_fd = create_and_get_cgroup(TEST_CGROUP);
- if (!cgroup_fd) {
+ if (cgroup_fd < 0) {
printf("Failed to create test cgroup\n");
goto err;
}