summaryrefslogtreecommitdiffstats
path: root/drivers/video/sis/sis_accel.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-11-15 01:59:02 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-15 03:45:38 +0100
commita9e60e5c3c4721dd216047e4c58c4eb89789f519 (patch)
tree889d05f1bcee8050500274f6ce695d038ee8c744 /drivers/video/sis/sis_accel.c
parentlguest_user.c: fix memory leak (diff)
downloadlinux-a9e60e5c3c4721dd216047e4c58c4eb89789f519.tar.xz
linux-a9e60e5c3c4721dd216047e4c58c4eb89789f519.zip
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 <bunk@kernel.org> Cc: Thomas Winischhofer <thomas@winischhofer.net> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/sis/sis_accel.c')
0 files changed, 0 insertions, 0 deletions