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

Commit 2823ae66 authored by Can Guo's avatar Can Guo Committed by Gerrit - the friendly Code Review server
Browse files

scsi: ufs: fix redzone overwritten error when print utp hci testbus



When print UTP HCI testbus data, a redzone overwritten error is triggered
because the max select minor value goes across its border. This change
fixes it.

Change-Id: Ib085288f3770aa0ab3683926247fb95f5e50cb08
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 6501338f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2681,7 +2681,7 @@ static void ufs_qcom_print_utp_hci_testbus(struct ufs_hba *hba)
		return;

	host->testbus.select_major = TSTBUS_UTP_HCI;
	for (i = 0; i <= nminor; i++) {
	for (i = 0; i < nminor; i++) {
		host->testbus.select_minor = i;
		ufs_qcom_testbus_config(host);
		testbus[i] = ufshcd_readl(hba, UFS_TEST_BUS);