patch-2.1.4 linux/kernel/sched.c

Next file: linux/kernel/signal.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/kernel/sched.c linux/kernel/sched.c
@@ -1222,7 +1222,7 @@
 	error = verify_area(VERIFY_READ, param, sizeof(struct sched_param));
 	if (error)
 		return error;
-	memcpy_fromfs(&lp, param, sizeof(struct sched_param));
+	copy_from_user(&lp, param, sizeof(struct sched_param));
 
 	p = find_process_by_pid(pid);
 	if (!p)
@@ -1303,7 +1303,7 @@
 		return -ESRCH;
 
 	lp.sched_priority = p->rt_priority;
-	memcpy_tofs(param, &lp, sizeof(struct sched_param));
+	copy_to_user(param, &lp, sizeof(struct sched_param));
 
 	return 0;
 }
@@ -1354,7 +1354,7 @@
 	t.tv_sec = 0;
 	t.tv_nsec = 0;   /* <-- Linus, please fill correct value in here */
 	return -ENOSYS;  /* and then delete this line. Thanks!           */
-	memcpy_tofs(interval, &t, sizeof(struct timespec));
+	copy_to_user(interval, &t, sizeof(struct timespec));
 
 	return 0;
 }
@@ -1391,7 +1391,7 @@
 	error = verify_area(VERIFY_READ, rqtp, sizeof(struct timespec));
 	if (error)
 		return error;
-	memcpy_fromfs(&t, rqtp, sizeof(struct timespec));
+	copy_from_user(&t, rqtp, sizeof(struct timespec));
 	if (rmtp) {
 		error = verify_area(VERIFY_WRITE, rmtp,
 				    sizeof(struct timespec));
@@ -1421,7 +1421,7 @@
 		if (rmtp) {
 			jiffiestotimespec(expire - jiffies -
 					  (expire > jiffies + 1), &t);
-			memcpy_tofs(rmtp, &t, sizeof(struct timespec));
+			copy_to_user(rmtp, &t, sizeof(struct timespec));
 		}
 		return -EINTR;
 	}

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