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

Commit 31f922da authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mdss: hdmi: Fix null dereferences"

parents 80988c85 dc0cf5c9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -603,7 +603,7 @@ static int hdmi_hdcp_authentication_part1(struct hdmi_hdcp_ctrl *hdcp_ctrl)
error:
	if (rc) {
		DEV_ERR("%s: %s: Authentication Part I failed\n", __func__,
			HDCP_STATE_NAME);
			hdcp_ctrl ? HDCP_STATE_NAME : "???");
	} else {
		/* Enable HDCP Encryption */
		DSS_REG_W(io, HDMI_HDCP_CTRL, BIT(0) | BIT(8));
@@ -1041,7 +1041,7 @@ static int hdmi_hdcp_authentication_part2(struct hdmi_hdcp_ctrl *hdcp_ctrl)
error:
	if (rc)
		DEV_ERR("%s: %s: Authentication Part II failed\n", __func__,
			HDCP_STATE_NAME);
			hdcp_ctrl ? HDCP_STATE_NAME : "???");
	else
		DEV_INFO("%s: %s: Authentication Part II successful\n",
			__func__, HDCP_STATE_NAME);
+7 −4
Original line number Diff line number Diff line
@@ -1404,6 +1404,11 @@ static int hdmi_tx_set_video_fmt(struct hdmi_tx_ctrl *hdmi_ctrl,

	timing = hdmi_get_supported_mode(hdmi_ctrl->video_resolution);

	if (!timing) {
		DEV_ERR("%s: invalid input\n", __func__);
		return -EINVAL;
	}

	/* todo: find a better way */
	hdmi_ctrl->pdata.power_data[HDMI_TX_CORE_PM].clk_config[0].rate =
		timing->pixel_freq * 1000;
@@ -3508,8 +3513,7 @@ static int hdmi_tx_get_dt_clk_data(struct device *dev,

	if (!dev || !mp) {
		DEV_ERR("%s: invalid input\n", __func__);
		rc = -EINVAL;
		goto error;
		return -EINVAL;
	}

	DEV_DBG("%s: module: '%s'\n", __func__, hdmi_tx_pm_name(module_type));
@@ -3615,8 +3619,7 @@ static int hdmi_tx_get_dt_vreg_data(struct device *dev,

	if (!dev || !mp) {
		DEV_ERR("%s: invalid input\n", __func__);
		rc = -EINVAL;
		goto error;
		return -EINVAL;
	}

	switch (module_type) {