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

Commit e5678d02 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: Fix potential NULL pointer dereference in misr set"

parents 97bba66b 03c2e17b
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1244,11 +1244,14 @@ static inline struct mdss_mdp_misr_map *mdss_misr_get_map(u32 block_id,
			if (ctl) {
				mixer = mdss_mdp_mixer_get(ctl,
					MDSS_MDP_MIXER_MUX_DEFAULT);

				if (mixer) {
					ctrl_reg = mixer->base +
						MDSS_MDP_LAYER_MIXER_MISR_CTRL;
					value_reg = mixer->base +
					MDSS_MDP_LAYER_MIXER_MISR_SIGNATURE;
				}
			}
		} else {
			if (block_id <= DISPLAY_MISR_HDMI) {
				intf_base = (char *)mdss_mdp_get_intf_base_addr(