patch-2.3.48 linux/drivers/net/hamradio/6pack.c

Next file: linux/drivers/net/ioc3-eth.c
Previous file: linux/drivers/net/eepro100.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/drivers/net/hamradio/6pack.c linux/drivers/net/hamradio/6pack.c
@@ -752,8 +752,8 @@
 				 * VSV = if dev->start==0, then device
 				 * unregistered while close proc.
 				 */ 
-				if (netif_running(sixpack_ctrls[i]->dev))
-					unregister_netdev(&(sixpack_ctrls[i]->dev));
+				if (netif_running(&sixpack_ctrls[i]->dev))
+					unregister_netdev(&sixpack_ctrls[i]->dev);
 
 				kfree(sixpack_ctrls[i]);
 				sixpack_ctrls[i] = NULL;

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