bpf tools: Fix syscall argument
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 25 Apr 2016 02:34:54 +0000 (19:34 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 28 Apr 2016 12:58:57 +0000 (09:58 -0300)
commit1a71476e4f2693ed93523c80ff1e2d4a8634717c
tree54d4cad091a053d21fa4ec22a2502bb9ae02a97e
parenta431d67934dfe9ffbe65972b0dbe576331595186
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 <f.fainelli@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Wang Nan <wangnan0@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Fixes: 8f9e05fb298f ("perf tools: Fix PowerPC native building")
Link: http://lkml.kernel.org/r/1461551694-5512-3-git-send-email-f.fainelli@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/feature/test-bpf.c