cyblafb: fix pseudo_palette array overrun in setcolreg
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 17 Jul 2007 11:05:35 +0000 (04:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:12 +0000 (10:23 -0700)
commit7592181005261c3d90398375ab6922f56cdd2bad
tree9ca5d040ec5bd2258553af8e3f2ef8d14e5db316
parent11494543a5775b4764d0172084092715a533a8ce
cyblafb: fix pseudo_palette array overrun in setcolreg

The pseudo_palette has only 16 elements. Do not write if regno (the array
index) is more than 15.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/cyblafb.c