All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] soreuseport: change consume_skb to kfree_skb in error case
@ 2016-01-05 15:57 Craig Gallek
  2016-01-05 16:39 ` Daniel Borkmann
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Craig Gallek @ 2016-01-05 15:57 UTC (permalink / raw)
  To: netdev, David Miller

From: Craig Gallek <kraig@google.com>

Fixes: 538950a1b752 ("soreuseport: setsockopt SO_ATTACH_REUSEPORT_[CE]BPF")
Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Craig Gallek <kraig@google.com>
---
 net/core/sock_reuseport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.6.0.rc2.230.g3dd15c0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-01-06  6:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-05 15:57 [PATCH net-next] soreuseport: change consume_skb to kfree_skb in error case Craig Gallek
2016-01-05 16:39 ` Daniel Borkmann
2016-01-05 17:38 ` Eric Dumazet
2016-01-05 17:47   ` Craig Gallek
2016-01-05 18:31     ` Eric Dumazet
2016-01-05 19:12       ` Craig Gallek
2016-01-05 19:34         ` Eric Dumazet
2016-01-06  6:31 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.