]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/char/vt_ioctl.c: fix VT_OPENQRY error value
authorGraham Gower <graham.gower@gmail.com>
Wed, 27 Oct 2010 22:33:00 +0000 (15:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:26:44 +0000 (13:26 -0800)
commitecd33c38afd3d6838a84f75d0905ab3d26c99ac5
treef40ea220bb3057ad3afc64c0ebe15ec09b72fe3c
parent0785ba875cf1728a62c91856d312f5d89f8d2679
drivers/char/vt_ioctl.c: fix VT_OPENQRY error value

commit 1e0ad2881d50becaeea70ec696a80afeadf944d2 upstream.

When all VT's are in use, VT_OPENQRY casts -1 to unsigned char before
returning it to userspace as an int.  VT255 is not the next available
console.

Signed-off-by: Graham Gower <graham.gower@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/vt_ioctl.c