path: root/tools/build
diff options
authorFlorian Fainelli <>2016-04-24 19:34:54 -0700
committerArnaldo Carvalho de Melo <>2016-04-28 09:58:57 -0300
commit1a71476e4f2693ed93523c80ff1e2d4a8634717c (patch)
tree54d4cad091a053d21fa4ec22a2502bb9ae02a97e /tools/build
parenta431d67934dfe9ffbe65972b0dbe576331595186 (diff)
bpf tools: Fix syscall argument
Coverity flagged this under CID 1354884 as a sizeof mismatch, it turns out that the argument "attr" passed to syscall should have been a pointer to attr in the first place. Reported-by: coverity (CID 1354884) Signed-off-by: Florian Fainelli <> Acked-by: Alexei Starovoitov <> Acked-by: Wang Nan <> Cc: Jiri Olsa <> Fixes: 8f9e05fb298f ("perf tools: Fix PowerPC native building") Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/build')
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/feature/test-bpf.c b/tools/build/feature/test-bpf.c
index 8236df9a46ca..e04ab89a1013 100644
--- a/tools/build/feature/test-bpf.c
+++ b/tools/build/feature/test-bpf.c
@@ -31,5 +31,5 @@ int main(void)
* Test existence of __NR_bpf and BPF_PROG_LOAD.
* This call should fail if we run the testcase.
- return syscall(__NR_bpf, BPF_PROG_LOAD, attr, sizeof(attr));
+ return syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr));