vt: NULL dereference in vt_do_kdsk_ioctl()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 10 Mar 2012 08:59:23 +0000 (11:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 17:21:55 +0000 (10:21 -0700)
commit82896210aa3c59eaa4f78f7ba2f5f947601dd8f8
tree947b027ea02d9cf0545f7296ead4407e58e087b8
parent9abac8537c2cf435b251ca61e632d6a70a84077e
vt: NULL dereference in vt_do_kdsk_ioctl()

We forgot to set the "key_map" variable here, so it's still NULL.  This
was introduced recently in 079c9534a9 "vt:tackle kbd_table".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c