]> git.baikalelectronics.ru Git - kernel.git/commit
radeon/pm: Guard access to rdev->pm.power_state array
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 8 Jan 2014 02:40:20 +0000 (11:40 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jan 2014 16:34:26 +0000 (11:34 -0500)
commit57f119e3574da2f7ad4056aeb89efb039ea9ae6e
tree5f8d37354fa439bdac2f100e9ae1a61c3f4a5411
parent0917e64594196eedd3374b498c947bf378cf0d92
radeon/pm: Guard access to rdev->pm.power_state array

It's never allocated on systems without an ATOMBIOS or COMBIOS ROM.

Should fix an oops I encountered while resetting the GPU after a lockup
on my PowerBook with an RV350.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_pm.c