aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-08-25 23:27:14 +0300
committerDavid S. Miller <[email protected]>2017-08-28 15:23:34 -0700
commitf740c34ee5cf62e1fff5ebec6d0e63efcc3cdfe9 (patch)
treedae07d94d1213f22effa1425da4a05e286dd56ea /tools/perf/scripts/python
parenta8e3bb347d8c32c25830af55466e08979df4e2be (diff)
bpf: fix oops on allocation failure
"err" is set to zero if bpf_map_area_alloc() fails so it means we return ERR_PTR(0) which is NULL. The caller, find_and_alloc_map(), is not expecting NULL returns and will oops. Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions