drm/radeon/kms/atom: fix possible segfault in pm setup
authorAlexander Müller <serveralex@gmail.com>
Fri, 30 Dec 2011 17:55:48 +0000 (12:55 -0500)
committerDave Airlie <airlied@redhat.com>
Tue, 3 Jan 2012 09:17:16 +0000 (09:17 +0000)
commit4376eee92e5a8332b470040e672ea99cd44c826a
treed26e398b57d3d907423eb709f9e221d9fe1ab616
parent115e8e705e4be071b9e06ff72578e3b603f2ba65
drm/radeon/kms/atom: fix possible segfault in pm setup

If we end up with no power states, don't look up
current vddc.

fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=44130

agd5f: fix patch formatting

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_atombios.c