diff options
| author | 2018-05-11 19:21:42 +0800 | |
|---|---|---|
| committer | 2018-05-30 15:35:31 -0300 | |
| commit | ab4e32ff5aa797eaea551dbb67946e2fcb56cc7e (patch) | |
| tree | 3ace599c7ac233126ebe83730c5c184da44f2ca5 /fs/proc/array.c | |
| parent | perf test: "Session topology" dumps core on s390 (diff) | |
| download | wireguard-linux-ab4e32ff5aa797eaea551dbb67946e2fcb56cc7e.tar.xz wireguard-linux-ab4e32ff5aa797eaea551dbb67946e2fcb56cc7e.zip | |
perf bpf: Fix NULL return handling in bpf__prepare_load()
bpf_object__open()/bpf_object__open_buffer can return error pointer or
NULL, check the return values with IS_ERR_OR_NULL() in bpf__prepare_load
and bpf__prepare_load_buffer
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: netdev@vger.kernel.org
Link: https://lkml.kernel.org/n/tip-psf4xwc09n62al2cb9s33v9h@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
