[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-1a71476e4f2693ed93523c80ff1e2d4a8634717c@git.kernel.org>
Date: Sun, 1 May 2016 00:37:14 -0700
From: tip-bot for Florian Fainelli <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: ast@...nel.org, mingo@...nel.org, linux-kernel@...r.kernel.org,
acme@...hat.com, tglx@...utronix.de, f.fainelli@...il.com,
jolsa@...nel.org, wangnan0@...wei.com, hpa@...or.com
Subject: [tip:perf/core] bpf tools: Fix syscall argument
Commit-ID: 1a71476e4f2693ed93523c80ff1e2d4a8634717c
Gitweb: http://git.kernel.org/tip/1a71476e4f2693ed93523c80ff1e2d4a8634717c
Author: Florian Fainelli <f.fainelli@...il.com>
AuthorDate: Sun, 24 Apr 2016 19:34:54 -0700
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Thu, 28 Apr 2016 09:58:57 -0300
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@...il.com>
Acked-by: Alexei Starovoitov <ast@...nel.org>
Acked-by: Wang Nan <wangnan0@...wei.com>
Cc: Jiri Olsa <jolsa@...nel.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@...hat.com>
---
tools/build/feature/test-bpf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/build/feature/test-bpf.c b/tools/build/feature/test-bpf.c
index 8236df9..e04ab89 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));
}
Powered by blists - more mailing lists