]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: fix null pointer dereference around dpm state relates
authorEvan Quan <evan.quan@amd.com>
Thu, 25 Jul 2019 04:10:34 +0000 (12:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:23:29 +0000 (23:23 -0500)
commite28ac6a47d44628f488f9e099862d4a8cd97a5cf
treee7b1eac0cbce6e388b586ba6cc9baa68bfd98e89
parent2dfa95d60ae24fa6d8657ddf05a151ec3c5073b7
drm/amd/powerplay: fix null pointer dereference around dpm state relates

DPM state relates are not supported on the new SW SMU ASICs. But still
it's not OK to trigger null pointer dereference on accessing them.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c