From: Adrian Bunk Date: Thu, 15 Nov 2007 00:59:02 +0000 (-0800) Subject: video/sis/: fix negative array index X-Git-Tag: v2.6.24-rc3~111 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9e60e5c3c4721dd216047e4c58c4eb89789f519;p=pandora-kernel.git video/sis/: fix negative array index This patch fixes the possible usage of a negative value as an array index spotted by the Coverity checker. sisfb_validate_mode() could return a negative error code and we must check for that prior to using its return value as an array index. Signed-off-by: Adrian Bunk Cc: Thomas Winischhofer Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed