patch-2.3.22 linux/drivers/char/adbmouse.c

Next file: linux/drivers/char/bttv.c
Previous file: linux/drivers/char/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.21/linux/drivers/char/adbmouse.c linux/drivers/char/adbmouse.c
@@ -158,6 +158,8 @@
 	if (!MACH_IS_MAC)
 		return -ENODEV;
 #endif
+	/* all buttons up */
+	memset(adb_mouse_buttons, 7, sizeof(adb_mouse_buttons));
 
 	msedev = register_busmouse(&adb_mouse);
 	if (msedev < 0)

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