tty,vt: fix VT_SETACTIVATE console switch
authorJiri Olsa <jolsa@redhat.com>
Fri, 11 Feb 2011 14:39:28 +0000 (15:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 19:27:17 +0000 (11:27 -0800)
commitd637837583163a1a70331ce48097f697cac85e32
tree5d1bdb86349cecd7cd1c102a55eb5218f870e271
parent42bd7a4f68e7785dce656a379c3de0a74f5a4d84
tty,vt: fix VT_SETACTIVATE console switch

using VT_SETACTIVATE ioctl for console switch did not work,
since it put wrong param to the set_console function.

Also ioctl returned misleading error, because of the missing
break statement. I wonder anyone has ever used this one :).

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/vt/vt_ioctl.c