carminefb: fix possible access beyond end of carmine_modedb[]
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 16 Jun 2009 22:34:32 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:59 +0000 (19:47 -0700)
commit493f139ecf9ee72f73ccbabd016325a145e884ee
tree593fee921f62721bf785392ebb6cca04a745954e
parent34308fd4a22b4c24f54951e47d14e6ae5de6e150
carminefb: fix possible access beyond end of carmine_modedb[]

This check is off-by-one.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/carminefb.c