From: Graham Gower Date: Wed, 27 Oct 2010 22:33:00 +0000 (-0700) Subject: drivers/char/vt_ioctl.c: fix VT_OPENQRY error value X-Git-Tag: v2.6.37-rc1~85^2~134 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e0ad2881d50becaeea70ec696a80afeadf944d2;p=pandora-kernel.git drivers/char/vt_ioctl.c: fix VT_OPENQRY error value 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 Cc: Greg KH Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed