Skip to content

Commit

Permalink
vt: Add K_OFF return value to vt_ioctl KDGKBMODE
Browse files Browse the repository at this point in the history
After adding support for K_OFF in KDSKBMODE, it was forgotten to
add support for returning it in KDGKBMODE.

Signed-off-by: Arthur Taylor <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
arthurt authored and gregkh committed Apr 19, 2011
1 parent 909bc77 commit 60680f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/tty/vt/vt_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 60680f9

Please sign in to comment.