From: Arthur Taylor Date: Thu, 17 Mar 2011 08:47:32 +0000 (-0700) Subject: vt: Add K_OFF return value to vt_ioctl KDGKBMODE X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=60680f97d7412b471d21ef42d4860657a0f9f2ed;p=mv-sheeva.git vt: Add K_OFF return value to vt_ioctl KDGKBMODE After adding support for K_OFF in KDSKBMODE, it was forgotten to add support for returning it in KDGKBMODE. Signed-off-by: Arthur Taylor Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index 937d1721998..e71477a860c 100644 --- a/drivers/tty/vt/vt_ioctl.c +++ b/drivers/tty/vt/vt_ioctl.c @@ -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;