From: Antonino A. Daplas Date: Fri, 10 Aug 2007 20:00:47 +0000 (-0700) Subject: pvr2fb: Fix oops when pseudo_palette is written X-Git-Tag: v2.6.23-rc3~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cd1c67434544b1d9a4fb4a4cdec15608167a233;p=pandora-kernel.git pvr2fb: Fix oops when pseudo_palette is written Reported by: Adrian McMenamin This driver will oops when the pseudo_palette[] is written as u32 but not when written as u16. When written as u32, it corrupts the adjacent 'mmio_base' field of struct pvr2fb_par. Fix by using framebuffer_alloc()/release() to allocate struct fb_info and struct pvr2fb_par, and create the pseudo_palette[] as part of struct pvr2fb_par. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed