patch-2.4.0-test5 linux/net/econet/af_econet.c

Next file: linux/net/ethernet/pe2.c
Previous file: linux/net/decnet/dn_table.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/net/econet/af_econet.c linux/net/econet/af_econet.c
@@ -594,7 +594,7 @@
 		if (edev == NULL)
 		{
 			/* Magic up a new one. */
-			edev = kmalloc(GFP_KERNEL, sizeof(struct ec_device));
+			edev = kmalloc(sizeof(struct ec_device), GFP_KERNEL);
 			if (edev == NULL) {
 				printk("af_ec: memory squeeze.\n");
 				dev_put(dev);

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