patch-1.3.15 linux/drivers/char/vt.c

Next file: linux/drivers/net/3c501.c
Previous file: linux/drivers/char/vc_screen.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.14/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -424,7 +424,7 @@
 
 		if (!perm)
 			return -EPERM;
-		i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbentry));
+		i = verify_area(VERIFY_READ, (const void *)a, sizeof(struct kbentry));
 		if (i)
 			return i;
 		if ((i = get_user(&a->kb_index)) >= NR_KEYS)

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