patch-2.1.22 linux/drivers/char/tpqic02.c

Next file: linux/drivers/char/wdt.c
Previous file: linux/drivers/char/pcwd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.21/linux/drivers/char/tpqic02.c linux/drivers/char/tpqic02.c
@@ -2696,7 +2696,7 @@
 	 */
 
 	/* copy results to user space */
-	if (copy_to_user((char *) &ioctl_status, (char *) ioarg, sizeof(ioctl_status)))
+	if (copy_to_user((char *) ioarg, (char *) &ioctl_status, sizeof(ioctl_status)))
 	{
 	    return -EFAULT;
 	}	

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov