Commit 5aa9935b authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher

drm/amd/display: add pp_smu NULL pointer check

add pp_smu NULL ptr check
Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Reviewed-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a978f657
......@@ -1395,7 +1395,7 @@ static void notify_display_count_to_smu(
* sent as part of pplib_apply_display_requirements.
* So just return.
*/
if (!pp_smu->set_display_count)
if (!pp_smu || !pp_smu->set_display_count)
return;
display_count = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment