commit | ae2b27b859a144f503d382580320873c0beb09c7 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Aug 18 10:27:02 2017 +0300 |
committer | David S. Miller <davem@davemloft.net> | Fri Aug 18 10:18:20 2017 -0700 |
tree | 08251cb6077167a861775b00370bfbe5fe4d2bc6 | |
parent | 98ee2a11374ad1dc7b69c97500f65c87f49ff911 [diff] |
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>