diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-08-11 17:20:41 -0400 |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 16:13:35 -0400 |
commit | 797938b5e33991dadf4dd9228b932cc69c3e905a (patch) | |
tree | 09f46aa97bdda15af24b6197d6fbb058eb85e75c /drivers/char/vt_ioctl.c | |
parent | 9074d963f4a5ab9c45e9edea32c3df4960bc7490 (diff) |
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>
Diffstat (limited to 'drivers/char/vt_ioctl.c')
-rw-r--r-- | drivers/char/vt_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c index 30b5d128037c..29c651ab0d78 100644 --- a/drivers/char/vt_ioctl.c +++ b/drivers/char/vt_ioctl.c | |||
@@ -1757,7 +1757,7 @@ int vt_move_to_console(unsigned int vt, int alloc) | |||
1757 | return -EIO; | 1757 | return -EIO; |
1758 | } | 1758 | } |
1759 | release_console_sem(); | 1759 | release_console_sem(); |
1760 | if (vt_waitactive(vt)) { | 1760 | if (vt_waitactive(vt + 1)) { |
1761 | pr_debug("Suspend: Can't switch VCs."); | 1761 | pr_debug("Suspend: Can't switch VCs."); |
1762 | return -EINTR; | 1762 | return -EINTR; |
1763 | } | 1763 | } |