]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 19:51:15 +0000 (11:51 -0800)
commite4496194b5e849e89065d675ffec7214238a6a19
tree962edfc9cb90a531be96d95b6b0fdf71eb8272f3
parentaea570ea6bc6532cc33a2fb98d3a7348781f3b76
radeon/pm: Guard access to rdev->pm.power_state array

commit 370169516e736edad3b3c5aa49858058f8b55195 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_pm.c