Commit d2d7f4b4 authored by David S. Miller's avatar David S. Miller Committed by Linus Torvalds

[PPPOE]: Do not leak SKB if sock_queue_rcv_skb() fails.

parent 690bf963
...@@ -352,7 +352,8 @@ static int pppoe_rcv_core(struct sock *sk, struct sk_buff *skb) ...@@ -352,7 +352,8 @@ static int pppoe_rcv_core(struct sock *sk, struct sk_buff *skb)
if (!__pppoe_xmit( relay_po->sk, skb)) if (!__pppoe_xmit( relay_po->sk, skb))
goto abort_put; goto abort_put;
} else { } else {
sock_queue_rcv_skb(sk, skb); if (sock_queue_rcv_skb(sk, skb))
goto abort_kfree;
} }
return NET_RX_SUCCESS; return NET_RX_SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment