diff options
author | Craig Gallek <kraig@google.com> | 2016-01-05 16:57:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-06 07:30:27 +0100 |
commit | 00ce3a15d811978fcb204a1a3f5f8c059096fa5e (patch) | |
tree | 9660c61141ea9fea71ce68db9c38d13c27d5ab36 /net/core | |
parent | soreuseport: pass skb to secondary UDP socket lookup (diff) | |
download | linux-00ce3a15d811978fcb204a1a3f5f8c059096fa5e.tar.xz linux-00ce3a15d811978fcb204a1a3f5f8c059096fa5e.zip |
soreuseport: change consume_skb to kfree_skb in error case
Fixes: 538950a1b752 ("soreuseport: setsockopt SO_ATTACH_REUSEPORT_[CE]BPF")
Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Craig Gallek <kraig@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/sock_reuseport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock_reuseport.c b/net/core/sock_reuseport.c index ae0969c0fc2e..1df98c557440 100644 --- a/net/core/sock_reuseport.c +++ b/net/core/sock_reuseport.c @@ -173,7 +173,7 @@ static struct sock *run_bpf(struct sock_reuseport *reuse, u16 socks, /* temporarily advance data past protocol header */ if (!pskb_pull(skb, hdr_len)) { - consume_skb(nskb); + kfree_skb(nskb); return NULL; } index = bpf_prog_run_save_cb(prog, skb); |