Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77d3f65d authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru
Browse files

drm/msm/dp: check for EDID data during panel deinitialization



Check for NULL EDID information before freeing the EDID data
during Display Port panel deinitialization.

Change-Id: I0e66528bea2c954f13fc3d54cedaf6e4880b5778
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent 25592fc7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1466,7 +1466,7 @@ static int dp_panel_deinit_panel_info(struct dp_panel *dp_panel)
	panel = container_of(dp_panel, struct dp_panel_private, dp_panel);
	hdr = &panel->catalog->hdr_data;

	if (!panel->custom_edid)
	if (!panel->custom_edid && dp_panel->edid_ctrl->edid)
		sde_free_edid((void **)&dp_panel->edid_ctrl);

	dp_panel_set_stream_info(dp_panel, DP_STREAM_MAX, 0, 0, 0);