patch-2.4.25 linux-2.4.25/drivers/net/pppoe.c

Next file: linux-2.4.25/drivers/net/sb1250-mac.c
Previous file: linux-2.4.25/drivers/net/pcmcia/xircom_cb.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/net/pppoe.c linux-2.4.25/drivers/net/pppoe.c
@@ -365,7 +365,8 @@
 		if (!__pppoe_xmit( relay_po->sk , skb))
 			goto abort_put;
 	} else {
-		sock_queue_rcv_skb(sk, skb);
+		if (sock_queue_rcv_skb(sk, skb))
+			goto abort_kfree;
 	}
 
 	return NET_RX_SUCCESS;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)