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

Next file: linux-2.4.22/drivers/net/r8169.c
Previous file: linux-2.4.22/drivers/net/ppp_generic.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/net/pppoe.c linux-2.4.22/drivers/net/pppoe.c
@@ -605,7 +605,8 @@
 		/* Delete the old binding */
 		delete_item(po->pppoe_pa.sid,po->pppoe_pa.remote);
 
-		dev_put(po->pppoe_dev);
+		if(po->pppoe_dev)
+			dev_put(po->pppoe_dev);
 
 		memset(po, 0, sizeof(struct pppox_opt));
 		po->sk = sk;

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