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

Commit 78aeb458 authored by Lina Iyer's avatar Lina Iyer
Browse files

drivers: mailbox: qti_tcs: fix incorrect check for TCS slot



When getting the TCS to use for sending active requests, ensure that the
slots are checked correctly to be within bounds.

Change-Id: Icf7177519cad650009d8ac8dae22d276845fbf52
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 05dd7119
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -604,7 +604,7 @@ static int find_free_tcs(struct tcs_mbox *tcs)
			slot = m * tcs->ncpt;
			break;
		}
		if (++m > tcs->num_tcs)
		if (++m >= tcs->num_tcs)
			m = 0;
		cpu_relax();
	} while (1);