diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-02-03 00:42:03 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-02-04 00:46:35 +0100 |
commit | 0975b16274bad1f0bd5c5fd6ab759c5a9ee11949 (patch) | |
tree | 522e6af52e285c3616976709f868aa07e38c8cbe /drivers/gpu/drm/radeon/radeon_pm.c | |
parent | drm/radeon/kms: fix s/r issues with bios scratch regs (diff) | |
download | linux-0975b16274bad1f0bd5c5fd6ab759c5a9ee11949.tar.xz linux-0975b16274bad1f0bd5c5fd6ab759c5a9ee11949.zip |
drm/radeon/kms: dynamically allocate power state space
We previously used a static array, but some new systems
had more states then we had array space, so dynamically
allocate space based on the number of states in the vbios.
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=33851
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_pm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_pm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index 813620034a33..2aed03bde4b2 100644 --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c @@ -646,6 +646,9 @@ void radeon_pm_fini(struct radeon_device *rdev) #endif } + if (rdev->pm.power_state) + kfree(rdev->pm.power_state); + radeon_hwmon_fini(rdev); } |