tty: Power: fix suspend vt regression
authorJiri Slaby <jirislaby@gmail.com>
Tue, 11 Aug 2009 21:20:41 +0000 (23:20 +0200)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:35 +0000 (13:13 -0700)
commit797938b5e33991dadf4dd9228b932cc69c3e905a
tree09f46aa97bdda15af24b6197d6fbb058eb85e75c
parent9074d963f4a5ab9c45e9edea32c3df4960bc7490
tty: Power: fix suspend vt regression

vt_waitactive no longer accepts console parameter as console-1
since commit "vt: add an event interface". It expects console
number directly (as viewed by userspace -- counting from 1).

Fix a deadlock suspend regression by redefining adding one
to vt in vt_move_to_console.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/vt_ioctl.c