selftests/bpf: signedness bug in enable_all_controllers()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Jun 2019 07:00:21 +0000 (10:00 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 14 Jun 2019 23:14:07 +0000 (01:14 +0200)
commitcabd3e889b5772a0dc448ddca9a4b23591640bca
tree76e447b65525320ee12742c1b97f697a908c25ad
parentb552d33c80a967a4f653b53243562f1bd4950e8c
selftests/bpf: signedness bug in enable_all_controllers()

The "len" variable needs to be signed for the error handling to work
properly.

Fixes: 596092ef8bea ("selftests/bpf: enable all available cgroup v2 controllers")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/cgroup_helpers.c