Skip to content
Snippets Groups Projects
Commit 08ae9ef8 authored by majun258's avatar majun258 Committed by Alex Deucher
Browse files

drm/amdgpu/pm: Fix NULL pointer dereference when get power limit


Because powerplay_table initialization is skipped under
sriov case, We check and set default lower and upper OD
value if powerplay_table is NULL.

Fixes: 7968e974 ("drm/amdgpu/pm: Fix the power1_min_cap value")
Signed-off-by: default avatarMa Jun <Jun.Ma2@amd.com>
Reported-by: default avatarYin Zhenguo <zhenguo.yin@amd.com>
Suggested-by: default avatarLazar Lijo <lijo.lazar@amd.com>
Suggested-by: default avatarAlex Deucher <Alexander.Deucher@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 56b30ac8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment