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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2013 14:01:46 +0000 (10:01 -0400)
commitf8e6bfc2ce162855fa4f9822a45659f4b542c960
treee2d9a8b10eb8d16e0da644c9b8ea9645fbbaf4b4
parentbeb71fc61c2cad64e347f164991b8ef476529e64
drm/radeon: fix possible segfault when parsing pm tables

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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_atombios.c