patch-1.3.30 linux/drivers/char/keyboard.c

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

diff -u --recursive --new-file v1.3.29/linux/drivers/char/keyboard.c linux/drivers/char/keyboard.c
@@ -27,6 +27,7 @@
 #include <linux/signal.h>
 #include <linux/string.h>
 #include <linux/ioport.h>
+#include <linux/random.h>
 
 #include <asm/bitops.h>
 
@@ -370,6 +371,9 @@
 		prev_scancode = 0;
 		goto end_kbd_intr;
 	}
+#ifdef CONFIG_RANDOM
+	add_keyboard_randomness(scancode);
+#endif
 
 	tty = ttytab[fg_console];
  	kbd = kbd_table + fg_console;

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