From: Alex Deucher Date: Wed, 19 Oct 2011 00:10:05 +0000 (-0400) Subject: drm/radeon/kms/atom: fix handling of FB scratch indices X-Git-Tag: v3.1~12^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=5a6e8482a16e61250a9121fc9ec719ab0529e760 drm/radeon/kms/atom: fix handling of FB scratch indices 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 Reported-by: Dave Airlie Tested-by: Dave Airlie Cc: stable@kernel.org Signed-off-by: Dave Airlie --- Reading git-diff-tree failed