patch-2.1.5 linux/drivers/char/ftape/ftape-ctl.c

Next file: linux/drivers/char/ftape/ftape-read.c
Previous file: linux/drivers/cdrom/cdu31a.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.4/linux/drivers/char/ftape/ftape-ctl.c linux/drivers/char/ftape/ftape-ctl.c
@@ -670,7 +670,7 @@
 			TRACE_EXIT;
 			return error;
 		}
-		memcpy_fromfs(&krnl_arg.mtop, arg, arg_size);
+		copy_from_user(&krnl_arg.mtop, arg, arg_size);
 	}
 	TRACEx1(5, "called with ioctl command: 0x%08x", command);
 	switch (command) {
@@ -830,7 +830,7 @@
 			TRACE_EXIT;
 			return error;
 		}
-		memcpy_tofs(arg, &krnl_arg, arg_size);
+		copy_to_user(arg, &krnl_arg, arg_size);
 	}
 	TRACE_EXIT;
 	return result;

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