patch-2.1.56 linux/net/core/dev.c
Next file: linux/net/ipv4/arp.c
Previous file: linux/net/appletalk/sysctl_net_atalk.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Sat Sep 13 11:07:29 1997
-  Orig file: 
v2.1.55/linux/net/core/dev.c
-  Orig date: 
Thu Sep  4 17:07:32 1997
diff -u --recursive --new-file v2.1.55/linux/net/core/dev.c linux/net/core/dev.c
@@ -1006,7 +1006,7 @@
 
 	strcpy(ifr.ifr_name, dev->name);
 
-	err = copy_to_user(&ifr, arg, sizeof(struct ifreq));
+	err = copy_to_user(arg, &ifr, sizeof(struct ifreq));
 	return (err)?-EFAULT:0;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov