From: David Miller Date: Wed, 18 Feb 2009 09:35:23 +0000 (-0800) Subject: drm: radeon: Fix unaligned access in r300_scratch(). X-Git-Tag: v2.6.30-rc1~613^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=958a6f8ccb1964adc3eec84cf401c5baeb4fbca0;p=pandora-kernel.git drm: radeon: Fix unaligned access in r300_scratch(). In compat mode, the cmdbuf->buf 64-bit address cookie can potentially be only 32-bit aligned. Dereferencing this as 64-bit causes expensive unaligned traps on platforms like sparc64. Use get_unaligned() to fix. Signed-off-by: David S. Miller Signed-off-by: Dave Airlie --- Reading git-diff-tree failed