From: Jiri Olsa Date: Fri, 11 Feb 2011 14:39:28 +0000 (+0100) Subject: tty,vt: fix VT_SETACTIVATE console switch X-Git-Tag: MMI-PSA29.97-13-9~20522^2~47 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d637837583163a1a70331ce48097f697cac85e32;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index 6bcf05bf4978..9e9a901442a3 100644 --- a/drivers/tty/vt/vt_ioctl.c +++ b/drivers/tty/vt/vt_ioctl.c @@ -1010,8 +1010,9 @@ int vt_ioctl(struct tty_struct *tty, struct file * file, if (ret) break; /* Commence switch and lock */ - set_console(arg); + set_console(vsa.console); } + break; } /*