]> 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 05:06:58 +0000 (00:06 -0500)
commite88566aa21d25e6ed60e3941e7433151babb3cab
tree9034d6039d2f32fd9997bbc8e9527853b2cbb929
parent7774e423e13b9e7aea04320a715b90952214f0c3
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