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

Next file: linux/drivers/char/busmouse.c
Previous file: linux/drivers/char/README.scc
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.34/linux/drivers/char/atixlmouse.c linux/drivers/char/atixlmouse.c
@@ -26,6 +26,7 @@
 #include <linux/signal.h>
 #include <linux/errno.h>
 #include <linux/mouse.h>
+#include <linux/random.h>
 
 #include <asm/io.h>
 #include <asm/segment.h>
@@ -89,6 +90,7 @@
 	outb(ATIXL_MSE_READ_BUTTONS, ATIXL_MSE_CONTROL_PORT); /* Select IR0 - Button Status */
 	buttons = inb( ATIXL_MSE_DATA_PORT);
 	if (dx != 0 || dy != 0 || buttons != mouse.latch_buttons) {
+		add_mouse_randomness((buttons << 16) + (dy << 8) + dx);
 		mouse.latch_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