YueHaibing
ae14c04458
perf bpf: Fix NULL return handling in bpf__prepare_load()
[ Upstream commit ab4e32ff5aa797eaea551dbb67946e2fcb56cc7e ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-08 15:30:52 +02:00
..
2018-04-26 11:02:06 +02:00
2018-02-25 11:07:55 +01:00
2017-10-17 09:05:36 -03:00
2017-11-02 11:10:55 +01:00
2018-07-03 11:25:01 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-08 15:30:52 +02:00
2017-11-02 11:10:55 +01:00
2018-05-30 07:52:40 +02:00
2018-07-08 15:30:52 +02:00
2018-05-30 12:19:59 +02:00
2017-07-18 23:13:52 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-26 11:02:06 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-07-20 15:46:10 -03:00
2018-02-25 11:07:54 +01:00
2017-11-02 11:10:55 +01:00
2017-04-19 13:01:46 -03:00
2018-02-22 15:42:23 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-10 13:40:43 +01:00
2017-07-18 23:14:11 -03:00
2018-05-30 12:19:59 +02:00
2018-04-26 11:02:06 +02:00
2017-11-02 11:10:55 +01:00
2018-04-26 11:02:06 +02:00
2018-05-30 07:52:31 +02:00
2017-12-10 13:40:43 +01:00
2018-05-30 07:52:31 +02:00
2017-12-10 13:40:43 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-03-13 10:59:31 -03:00
2017-11-02 11:10:55 +01:00
2017-08-28 16:44:46 -03:00
2018-05-30 07:52:23 +02:00
2017-09-25 10:39:43 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-30 12:19:59 +02:00