drm: radeon: Fix unaligned access in r300_scratch().
authorDavid Miller <davem@davemloft.net>
Wed, 18 Feb 2009 09:35:23 +0000 (01:35 -0800)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:24:04 +0000 (14:24 +1000)
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 <davem@davemloft.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found