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 20:54:08 +0000 (13:54 -0700)
commitd2444704cc6b3135247ee3533e6e04c562141afd
tree3712f2ac9f9582a43da4c72302db01d2c2749099
parent67d3fdc21b2875d89eb32ec64265d17b9292ff47
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