Skip to content

Commit

Permalink
tty,vt: fix VT_SETACTIVATE console switch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Olsa authored and Greg Kroah-Hartman committed Feb 17, 2011
1 parent 42bd7a4 commit d637837
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/tty/vt/vt_ioctl.c
Original file line number Diff line number Diff line change
@@ -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;
}

/*

0 comments on commit d637837

Please sign in to comment.