Revision 5a6e8482a16e61250a9121fc9ec719ab0529e760 authored by Alex Deucher on 19 October 2011, 00:10:05 UTC, committed by Dave Airlie on 19 October 2011, 08:47:47 UTC
FB scratch indices are dword indices, but we were treating
them as byte indices.  As such, we were getting the wrong
FB scratch data for non-0 indices.  Fix the indices and
guard the indexing against indices larger than the scratch
allocation.

Fixes memory corruption on some boards if data was written
past the end of the FB scratch array.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reported-by: Dave Airlie <airlied@redhat.com>
Tested-by: Dave Airlie <airlied@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent a4863ca
History
File Mode Size
agp
hw_random
ipmi
mwave
pcmcia
tpm
xilinx_hwicap
Kconfig -rw-r--r-- 21.5 KB
Makefile -rw-r--r-- 1.9 KB
apm-emulation.c -rw-r--r-- 17.5 KB
applicom.c -rw-r--r-- 24.0 KB
applicom.h -rw-r--r-- 2.5 KB
bfin-otp.c -rw-r--r-- 5.9 KB
briq_panel.c -rw-r--r-- 5.2 KB
bsr.c -rw-r--r-- 8.8 KB
ds1302.c -rw-r--r-- 7.5 KB
ds1620.c -rw-r--r-- 8.5 KB
dsp56k.c -rw-r--r-- 12.3 KB
dtlk.c -rw-r--r-- 16.3 KB
efirtc.c -rw-r--r-- 9.5 KB
generic_nvram.c -rw-r--r-- 3.4 KB
genrtc.c -rw-r--r-- 12.8 KB
hangcheck-timer.c -rw-r--r-- 6.2 KB
hpet.c -rw-r--r-- 24.5 KB
i8k.c -rw-r--r-- 17.7 KB
lp.c -rw-r--r-- 26.3 KB
mbcs.c -rw-r--r-- 19.9 KB
mbcs.h -rw-r--r-- 13.4 KB
mem.c -rw-r--r-- 19.7 KB
misc.c -rw-r--r-- 6.9 KB
mmtimer.c -rw-r--r-- 20.9 KB
msm_smd_pkt.c -rw-r--r-- 10.6 KB
mspec.c -rw-r--r-- 10.7 KB
nsc_gpio.c -rw-r--r-- 3.5 KB
nvram.c -rw-r--r-- 17.1 KB
nwbutton.c -rw-r--r-- 7.9 KB
nwbutton.h -rw-r--r-- 1.1 KB
nwflash.c -rw-r--r-- 13.7 KB
pc8736x_gpio.c -rw-r--r-- 8.8 KB
ppdev.c -rw-r--r-- 19.2 KB
ps3flash.c -rw-r--r-- 10.9 KB
ramoops.c -rw-r--r-- 6.4 KB
random.c -rw-r--r-- 39.3 KB
raw.c -rw-r--r-- 8.5 KB
rtc.c -rw-r--r-- 33.5 KB
scc.h -rw-r--r-- 16.4 KB
scx200_gpio.c -rw-r--r-- 3.1 KB
snsc.c -rw-r--r-- 11.0 KB
snsc.h -rw-r--r-- 2.8 KB
snsc_event.c -rw-r--r-- 7.3 KB
sonypi.c -rw-r--r-- 41.3 KB
tb0219.c -rw-r--r-- 7.8 KB
tile-srom.c -rw-r--r-- 11.6 KB
tlclk.c -rw-r--r-- 23.4 KB
toshiba.c -rw-r--r-- 13.2 KB
ttyprintk.c -rw-r--r-- 5.2 KB
uv_mmtimer.c -rw-r--r-- 5.5 KB
viotape.c -rw-r--r-- 26.0 KB
virtio_console.c -rw-r--r-- 43.6 KB

back to top