patch-2.4.0-test5 linux/drivers/net/wavelan.c

Next file: linux/drivers/parport/ChangeLog
Previous file: linux/drivers/net/wan/cycx_main.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/drivers/net/wavelan.c linux/drivers/net/wavelan.c
@@ -4221,7 +4221,7 @@
 			if (register_netdev(dev) != 0) {
 				/* Deallocate everything. */
 				/* Note: if dev->priv is mallocated, there is no way to fail. */
-				kfree_s(dev, sizeof(struct net_device));
+				kfree(dev);
 			} else {
 				/* If at least one device OK, we do not fail */
 				ret = 0;
@@ -4271,8 +4271,8 @@
 		wavelan_list = wavelan_list->next;
 
 		/* Free pieces. */
-		kfree_s(dev->priv, sizeof(struct net_local));
-		kfree_s(dev, sizeof(struct net_device));
+		kfree(dev->priv);
+		kfree(dev);
 	}
 
 #ifdef DEBUG_MODULE_TRACE

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