]> err.no Git - linux-2.6/commit
macfb: fix pseudo_palette size and overrun
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 17 Jul 2007 11:05:37 +0000 (04:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:12 +0000 (10:23 -0700)
commit24fc72239ab5a2d26ebdd4f6950539e6120d1a54
tree4725301358a10bfd94e3616efbe519c5ef107cff
parent9058be43cf9f32b6c636aa6954b4f1a6b22098f6
macfb: fix pseudo_palette size and overrun

- the pseudo_palette is only 16 elements long.
- do not write to the pseudo_palette if regno (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/macfb.c