drm/radeon: fix possible segfault when parsing pm tables
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Apr 2013 13:29:17 +0000 (09:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2013 14:18:35 +0000 (07:18 -0700)
commitb591b21206d81fc51492c7dace09256a8be4c6b2
treefbe855954190984cee96bd03728e931d115512fa
parent3f943152df692c85b382fdb186e257c357272f77
drm/radeon: fix possible segfault when parsing pm tables

commit f8e6bfc2ce162855fa4f9822a45659f4b542c960 upstream.

If we have a empty power table, bail early and allocate
the default power state.

Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=63865

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_atombios.c