aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-08-25 23:27:14 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-28 15:23:34 -0700
commitf740c34ee5cf62e1fff5ebec6d0e63efcc3cdfe9 (patch)
treedae07d94d1213f22effa1425da4a05e286dd56ea /tools
parentnet: Add comment that early_demux can change via sysctl (diff)
downloadlinux-dev-f740c34ee5cf62e1fff5ebec6d0e63efcc3cdfe9.tar.xz
linux-dev-f740c34ee5cf62e1fff5ebec6d0e63efcc3cdfe9.zip
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 <dan.carpenter@oracle.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions