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.27.57~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a9dd6359be697ed777a645d6ce8719b70cb9dba;p=pandora-kernel.git 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 Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed