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

drm/amd/display: add pp_smu NULL pointer check

parent a978f657
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;