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

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

Merge "mdss: mdp: Fix access after null check"

parents 4fad4efa c410a9a1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4560,7 +4560,8 @@ static inline void __mdss_mdp_mixer_write_layer(struct mdss_mdp_ctl *ctl,
	u32 off[NUM_MIXERCFG_REGS];
	int i;

	WARN_ON(!values || count < NUM_MIXERCFG_REGS);
	if (WARN_ON(!values || count < NUM_MIXERCFG_REGS))
		return;

	__mdss_mdp_mixer_get_offsets(mixer_num, off, ARRAY_SIZE(off));