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

Commit 398b404c authored by Dilip Kota's avatar Dilip Kota Committed by Karthikeyan Ramasubramanian
Browse files

slimbus: Fix uninitialized variable access



Fix reading uninitialized variable by initializing it to a default value
before reading.

Change-Id: Ic34dfec16357cbc4992912e883f21f014cf8a66c
Signed-off-by: default avatarDilip Kota <dkota@codeaurora.org>
parent 574dd005
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2397,6 +2397,8 @@ static int slim_sched_chans(struct slim_device *sb, u32 clkgear,
		bool opensl1valid = false;
		int maxctrlw1, maxctrlw3, i;

		/* intitalize array to zero */
		memset(opensl1, 0x0, sizeof(opensl1));
		finalexp = (ctrl->sched.chc3[last3])->rootexp;
		if (last1 >= 0) {
			slc1 = ctrl->sched.chc1[coeff1];