提交 d6378375 编写于 作者: J Jiri Olsa 提交者: Greg Kroah-Hartman

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: NJiri Olsa <jolsa@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 42bd7a4f
...@@ -1010,8 +1010,9 @@ int vt_ioctl(struct tty_struct *tty, struct file * file, ...@@ -1010,8 +1010,9 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
if (ret) if (ret)
break; break;
/* Commence switch and lock */ /* Commence switch and lock */
set_console(arg); set_console(vsa.console);
} }
break;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册