patch-2.4.18 linux/drivers/usb/pegasus.c
Next file: linux/drivers/usb/pwc-ctrl.c
Previous file: linux/drivers/usb/ov511.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Mon Feb 4 19:00:37 2002
- Orig file:
linux.orig/drivers/usb/pegasus.c
- Orig date:
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/drivers/usb/pegasus.c linux/drivers/usb/pegasus.c
@@ -883,6 +883,7 @@
if ( reset_mac(pegasus) ) {
err("can't reset MAC");
unregister_netdev( pegasus->net );
+ kfree(pegasus->net);
kfree(pegasus);
pegasus = NULL;
return NULL;
@@ -919,6 +920,7 @@
pegasus->flags |= PEGASUS_UNPLUG;
unregister_netdev( pegasus->net );
usb_dec_dev_use( dev );
+ kfree( pegasus->net );
kfree( pegasus );
pegasus = NULL;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)