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
- Lines: 13
- Date:
2003-11-28 10:26:20.000000000 -0800
- Orig file:
linux-2.4.22/drivers/net/pppoe.c
- Orig date:
2003-08-25 04:44:42.000000000 -0700
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)