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

Next file: linux/drivers/char/psaux.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.34/linux/drivers/char/msbusmouse.c linux/drivers/char/msbusmouse.c
@@ -48,6 +48,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>
@@ -77,6 +78,7 @@
 	outb((inb(MS_MSE_DATA_PORT) & 0xdf), MS_MSE_DATA_PORT);
 
 	if (dx != 0 || dy != 0 || buttons != mouse.buttons || ((~buttons) & 0x07)) {
+		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