Skip to content
Commit 958a6f8c authored by David Miller's avatar David Miller Committed by Dave Airlie
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent f1a2a9b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment