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>
This commit is contained in:
Jiri Olsa 2011-02-11 15:39:28 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель 42bd7a4f68
Коммит d637837583
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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;
}
/*