]> 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>
Mon, 21 Mar 2011 19:43:50 +0000 (12:43 -0700)
commitd569283b9aef5cc8a56f81596018b9d09951a548
tree2585bdae99bcc5110ddc2ce42e281aeb990e058b
parent57a14e526c888cf99015f52320ffab89d8f2eda6
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