bpf: fix a return in sockmap_get_from_fd()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Aug 2017 07:27:02 +0000 (10:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 17:18:20 +0000 (10:18 -0700)
commitae2b27b859a144f503d382580320873c0beb09c7
tree08251cb6077167a861775b00370bfbe5fe4d2bc6
parent98ee2a11374ad1dc7b69c97500f65c87f49ff911
bpf: fix a return in sockmap_get_from_fd()

"map" is a valid pointer.  We wanted to return "err" instead.  Also
let's return a zero literal at the end.

Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/syscall.c