[PATCH] drm/radeon/kms/atom: fix handling of FB scratch indices

2011-10-18 Thread alexdeuc...@gmail.com
From: Alex Deucher 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 potential memory corruption

[PATCH] drm/radeon/kms/atom: fix handling of FB scratch indices

2011-10-18 Thread alexdeucher
From: Alex Deucher 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 potential memory corruption