patch-2.4.0-test5 linux/drivers/net/fc/iph5526.c

Next file: linux/drivers/net/gmac.c
Previous file: linux/drivers/net/eepro.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/drivers/net/fc/iph5526.c linux/drivers/net/fc/iph5526.c
@@ -4554,7 +4554,7 @@
 		dev_fc[i]->priv = fc[i];
 		fc[i]->dev = dev_fc[i];
 		if (register_fcdev(dev_fc[i]) != 0) {
-			kfree_s(dev_fc[i], sizeof(struct net_device));
+			kfree(dev_fc[i]);
 			dev_fc[i] = NULL;
 			if (i == 0) {
 				printk("iph5526.c: IP registeration failed!!!\n");

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