patch-2.1.4 linux/kernel/info.c

Next file: linux/kernel/itimer.c
Previous file: linux/ipc/shm.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/kernel/info.c linux/kernel/info.c
@@ -36,6 +36,6 @@
 	si_meminfo(&val);
 	si_swapinfo(&val);
 
-	memcpy_tofs(info, &val, sizeof(struct sysinfo));
+	copy_to_user(info, &val, sizeof(struct sysinfo));
 	return 0;
 }

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