patch-1.3.35 linux/drivers/char/busmouse.c

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

diff -u --recursive --new-file v1.3.34/linux/drivers/char/busmouse.c linux/drivers/char/busmouse.c
@@ -46,6 +46,7 @@
 #include <linux/errno.h>
 #include <linux/mm.h>
 #include <linux/mouse.h>
+#include <linux/random.h>
 
 #include <asm/io.h>
 #include <asm/segment.h>
@@ -78,6 +79,7 @@
 	dy |= (buttons & 0xf) << 4;
 	buttons = ((buttons >> 5) & 0x07);
 	if (dx != 0 || dy != 0 || buttons != mouse.buttons) {
+	  add_mouse_randomness((buttons << 16) + (dy << 8) + dx);
 	  mouse.buttons = buttons;
 	  mouse.dx += dx;
 	  mouse.dy -= dy;

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