drm/radeon/kms/pm: fix segfault in clock code
authorAlex Deucher <alexdeucher@gmail.com>
Sun, 14 Mar 2010 20:31:36 +0000 (16:31 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 30 Mar 2010 23:53:46 +0000 (09:53 +1000)
commit57f50d70e27f99a9a785c760b2123cdf6a68e2de
tree3b5be46b2294c254b7db4e178274a62eabc2f998
parent29fb52ca78b4e265ec6c626b0c7b2927953949cf
drm/radeon/kms/pm: fix segfault in clock code

Make sure we have a crtc assigned to the encoder
before dereferencing it.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
drivers/gpu/drm/radeon/radeon_pm.c