vt: Add K_OFF return value to vt_ioctl KDGKBMODE
authorArthur Taylor <art@ified.ca>
Thu, 17 Mar 2011 08:47:32 +0000 (01:47 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 21:39:28 +0000 (14:39 -0700)
After adding support for K_OFF in KDSKBMODE, it was forgotten to
add support for returning it in KDGKBMODE.

Signed-off-by: Arthur Taylor <art@ified.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/vt/vt_ioctl.c

index 937d17219984508eaa2e26dff8278b6c79d6ca46..e71477a860c5918b825ea268ba97ca77fdea1cc3 100644 (file)
@@ -701,6 +701,7 @@ int vt_ioctl(struct tty_struct *tty,
                uival = ((kbd->kbdmode == VC_RAW) ? K_RAW :
                                 (kbd->kbdmode == VC_MEDIUMRAW) ? K_MEDIUMRAW :
                                 (kbd->kbdmode == VC_UNICODE) ? K_UNICODE :
+                                (kbd->kbdmode == VC_OFF) ? K_OFF :
                                 K_XLATE);
                goto setint;