On 08/25/2017 10:27 PM, Dan Carpenter wrote:
"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.carpen...@oracle.com>
Acked-by: Daniel Borkmann <dan...@iogearbox.net>