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

Commit ba0c4fde authored by Rahul Sharma's avatar Rahul Sharma Committed by Guchun Chen
Browse files

drm: msm: Fix kernel panic error



HDMI non_pluggable is only specific to auto dts setting.
If it's not presented in other products' dts entry, as
hdmi is null, calling hdmi_i2c_destroy() will cause null
pointer access and kernel panic would happen. So remove
the calling of such code.

Change-Id: I37bdd281f5b231831ae87f2ba344b01d3cdfaef7
Signed-off-by: default avatarRahul Sharma <rahsha@codeaurora.org>
parent e106251f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3078,8 +3078,6 @@ static int _sde_hdmi_parse_dt(struct device_node *node,
{
	int rc = 0;

	struct hdmi *hdmi = display->ctrl.ctrl;

	display->name = of_get_property(node, "label", NULL);

	display->display_type = of_get_property(node,
@@ -3092,8 +3090,6 @@ static int _sde_hdmi_parse_dt(struct device_node *node,

	display->skip_ddc = of_property_read_bool(node,
						"qcom,skip_ddc");
	if (!display->non_pluggable)
		hdmi_i2c_destroy(hdmi->i2c);

	rc = _sde_hdmi_parse_dt_modes(node, &display->mode_list,
					&display->num_of_modes);