patch-2.4.23 linux-2.4.23/arch/sparc64/kernel/ioctl32.c

Next file: linux-2.4.23/arch/sparc64/kernel/irq.c
Previous file: linux-2.4.23/arch/sparc64/kernel/head.S
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/arch/sparc64/kernel/ioctl32.c linux-2.4.23/arch/sparc64/kernel/ioctl32.c
@@ -1920,8 +1920,8 @@
 	    __cgc_do_ptr((void **) &cgc->sense, &cgc32->sense))
 		return -EFAULT;
 
-	if (get_user(dir, &cgc->data_direction) ||
-	    put_user(dir, &cgc32->data_direction))
+	if (get_user(dir, &cgc32->data_direction) ||
+	    put_user(dir, &cgc->data_direction))
 		return -EFAULT;
 
 	if (copy_in_user(&cgc->quiet, &cgc32->quiet,

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