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

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