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

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

Merge "mdss: Fix null point dereference in mdss_mdp_pp_init"

parents a80a3e0a 09756397
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -1720,11 +1720,13 @@ int mdss_mdp_pp_init(struct device *dev)
		if (mdss_pp_res == NULL) {
			pr_err("%s mdss_pp_res allocation failed!", __func__);
			ret = -ENOMEM;
		}

		} else {
			for (i = 0; i < MDSS_MDP_MAX_DSPP; i++) {
			mutex_init(&mdss_pp_res->dspp_hist[i].hist_mutex);
			spin_lock_init(&mdss_pp_res->dspp_hist[i].hist_lock);
				mutex_init(
					&mdss_pp_res->dspp_hist[i].hist_mutex);
				spin_lock_init(
					&mdss_pp_res->dspp_hist[i].hist_lock);
			}
		}
	}
	if (mdata) {