OSDN Git Service

drm/amdgpu: Fix kernel NULL pointer dereference in dpm functions
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 20 Mar 2018 08:32:07 +0000 (16:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Mar 2018 04:44:50 +0000 (23:44 -0500)
commiteb4900aa4c49e978041405ab2eeeb8538c7f736a
tree0fa0638f45a1001b426d757faf1160da6db11ac7
parent81ce8bea035befed2ae7670bf9f9404fa3f46f71
drm/amdgpu: Fix kernel NULL pointer dereference in dpm functions

caused by
'commit 83e3c4615872 ("drm/amdgpu: Remove wrapper layer of smu ip functions")'

BUG: unable to handle kernel NULL pointer dereference at 00000000000005d8
[  313.241459] IP: ci_dpm_read_sensor+0x37/0xf0 [amdgpu]

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/ci_dpm.c
drivers/gpu/drm/amd/amdgpu/kv_dpm.c
drivers/gpu/drm/amd/amdgpu/si_dpm.c