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

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

diff -urN linux-2.4.22/drivers/net/pppoe.c linux-2.4.23/drivers/net/pppoe.c
@@ -654,8 +654,10 @@
 	release_sock(sk);
 	return error;
 err_put:
-	dev_put(po->pppoe_dev);
-	po->pppoe_dev = NULL;
+	if (po->pppoe_dev) {
+		dev_put(po->pppoe_dev);
+		po->pppoe_dev = NULL;
+	}
 	goto end;
 }
 

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