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

Commit 28416b51 authored by Sandeep Panda's avatar Sandeep Panda
Browse files

msm: mdss: Fix potential null pointer dereference



When resetting the mdp control there is a NULL check for left
mixer before calling pipe reset but the NULL check for right
mixer is missing causes a NULL pointer deferencing. This
change adds the NULL check.

Change-Id: Iebbc68c4016d8b13805187343eb7b657e8b76bcc
Signed-off-by: default avatarNaseer Ahmed <naseer@codeaurora.org>
Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
parent c97f5cfd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4364,7 +4364,8 @@ int mdss_mdp_ctl_reset(struct mdss_mdp_ctl *ctl, bool is_recovery)
	if (mixer) {
		mdss_mdp_pipe_reset(mixer, is_recovery);

		if (is_dual_lm_single_display(ctl->mfd))
		if (is_dual_lm_single_display(ctl->mfd) &&
				ctl->mixer_right)
			mdss_mdp_pipe_reset(ctl->mixer_right, is_recovery);
	}