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

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

Merge "msm: mdss: Validate mixer/ctl are not null"

parents 210f543b e9b95d32
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -590,6 +590,11 @@ int mdss_mdp_wb_mixer_destroy(struct mdss_mdp_mixer *mixer)
{
	struct mdss_mdp_ctl *ctl;

	if (!mixer || !mixer->ctl) {
		pr_err("invalid ctl handle\n");
		return -ENODEV;
	}

	ctl = mixer->ctl;
	mixer->rotator_mode = 0;