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

Commit 2982079c authored by Andrei Danaila's avatar Andrei Danaila Committed by Matt Wagantall
Browse files

msm: mhi: Fix incorrect init of TRE iterator



The pending TRE iterator is not properly initialized
and checked against, leading to an incorrect number of
TREs getting processed.

CRs-Fixed: 748475
Change-Id: Ie8609edd1a89d8dc14bf781612357d7dc524f83a
Signed-off-by: default avatarAndrei Danaila <adanaila@codeaurora.org>
parent 81f7fda2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -861,7 +861,7 @@ enum MHI_STATUS parse_xfer_event(struct mhi_device_ctxt *ctxt,
	union mhi_xfer_pkt *local_trb_loc;
	struct mhi_chan_ctxt *chan_ctxt;
	u32 nr_trb_to_parse;
	u32 i;
	u32 i = 0;

	switch (MHI_EV_READ_CODE(EV_TRB_CODE, event)) {
	case MHI_EVENT_CC_EOB:
@@ -962,7 +962,7 @@ enum MHI_STATUS parse_xfer_event(struct mhi_device_ctxt *ctxt,
					rp;
			}
			i++;
		} while (i <= nr_trb_to_parse);
		} while (i < nr_trb_to_parse);
		break;
	} /* CC_EOT */
	case MHI_EVENT_CC_OOB: