Staging
v0.5.1
https://github.com/torvalds/linux
Revision 9cd1c67434544b1d9a4fb4a4cdec15608167a233 authored by Antonino A. Daplas on 10 August 2007, 20:00:47 UTC, committed by Linus Torvalds on 11 August 2007, 22:47:40 UTC
Reported by: Adrian McMenamin <adrianmcmenamin@gmail.com>

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 <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4769a9a
History
Tip revision: 9cd1c67434544b1d9a4fb4a4cdec15608167a233 authored by Antonino A. Daplas on 10 August 2007, 20:00:47 UTC
pvr2fb: Fix oops when pseudo_palette is written
Tip revision: 9cd1c67
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 607 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 89.3 KB
Kbuild -rw-r--r-- 1.5 KB
MAINTAINERS -rw-r--r-- 90.4 KB
Makefile -rw-r--r-- 50.1 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top