]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms/atom: fix potential oops in spread spectrum code
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 28 Oct 2009 04:51:20 +0000 (00:51 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Oct 2009 05:30:03 +0000 (15:30 +1000)
commit76e250eda85f1c95d128fb36c076ef8fce3c0fd7
tree8b95c80e299383c41b7ede5485ebf45b25b6e5ed
parent4137e0512289a683ca1f20e4036944c110b040f9
drm/radeon/kms/atom: fix potential oops in spread spectrum code

Make sure we have an LVDS encoder before casting enc_priv.

[airlied: also fix two missing cpu_to_le16 casts we noticed on irc]

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_crtc.c