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

Commit 069ae5dc authored by Mayank Chopra's avatar Mayank Chopra
Browse files

msm: mdss: Add pipe null check before usage



Check if pipe pointer points to allocated pipe structure before
accessing its parameters in pipe initialization function.

Change-Id: Id3dbad583d076b67ea64a7f84b56e5d32eeba827
Signed-off-by: default avatarMayank Chopra <makchopra@codeaurora.org>
parent 1bf9d12e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -561,7 +561,7 @@ static struct mdss_mdp_pipe *mdss_mdp_pipe_init(struct mdss_mdp_mixer *mixer,
		return NULL;
	}

	if (mdss_mdp_pipe_is_sw_reset_available(mdata)) {
	if (pipe && mdss_mdp_pipe_is_sw_reset_available(mdata)) {
		force_off_mask =
			BIT(pipe->clk_ctrl.bit_off + CLK_FORCE_OFF_OFFSET);
		reg_val = readl_relaxed(mdata->mdp_base +