patch-1.3.4 linux/drivers/char/msbusmouse.c

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

diff -u --recursive --new-file v1.3.3/linux/drivers/char/msbusmouse.c linux/drivers/char/msbusmouse.c
@@ -109,13 +109,13 @@
 		return -EINVAL;
 	if (!mouse.ready)
 		return -EAGAIN;
-	put_fs_byte(mouse.buttons | 0x80, buffer);
+	put_user(mouse.buttons | 0x80, buffer);
 	dx = mouse.dx < -127 ? -127 : mouse.dx > 127 ?  127 :  mouse.dx;
 	dy = mouse.dy < -127 ?  127 : mouse.dy > 127 ? -127 : -mouse.dy;
-	put_fs_byte((char)dx, buffer + 1);
-	put_fs_byte((char)dy, buffer + 2);
+	put_user((char)dx, buffer + 1);
+	put_user((char)dy, buffer + 2);
 	for (i = 3; i < count; i++)
-		put_fs_byte(0x00, buffer + i);
+		put_user(0x00, buffer + i);
 	mouse.dx -= dx;
 	mouse.dy += dy;
 	mouse.ready = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this