bpf: fix return in bpf_skb_adjust_net
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 13 Jul 2017 06:27:58 +0000 (14:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jul 2017 16:18:46 +0000 (09:18 -0700)
commite4a6a3424b75f23f6bb1cc479974fc305a4b9f78
tree393fdc5c041871489e8d9259f16e6a75c0726409
parentedaf3825182958a1fd5e39708fcb6ea48eca2060
bpf: fix return in bpf_skb_adjust_net

The bpf_skb_adjust_net() ignores the return value of bpf_skb_net_shrink/grow,
and always return 0, fix it by return 'ret'.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c