Adrian Bunk a9e60e5c3c 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>
2007-11-14 18:45:38 -08:00
..
2007-10-20 01:34:40 +02:00
2007-10-18 14:37:17 -07:00
2007-10-16 09:43:14 -07:00
2007-10-19 11:53:42 -07:00
2007-11-14 18:45:38 -08:00
2007-10-19 23:22:11 +02:00
2007-07-31 15:39:39 -07:00
2005-04-16 15:20:36 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-10-18 14:37:17 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-13 21:53:08 -07:00
2007-07-26 11:35:18 -07:00
2007-10-27 22:18:12 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-11-16 22:18:28 -08:00
2007-05-08 11:15:26 -07:00
2007-10-13 21:53:08 -07:00
2007-11-14 18:45:37 -08:00
2007-10-16 09:43:20 -07:00
2006-01-17 15:53:11 -08:00
2007-10-16 09:43:14 -07:00
2007-10-16 09:43:22 -07:00
2007-10-16 09:43:19 -07:00
2005-04-16 15:20:36 -07:00
2007-10-16 09:43:18 -07:00
2007-05-08 11:15:32 -07:00
2007-07-17 10:23:13 -07:00
2007-05-23 20:14:13 -07:00
2007-10-14 08:56:33 -07:00