mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Merge "mhi: core: Fix out of bound channel id handling"
This commit is contained in:
commit
0efc14c3da
1 changed files with 2 additions and 1 deletions
|
|
@ -1321,7 +1321,7 @@ int mhi_process_data_event_ring(struct mhi_controller *mhi_cntrl,
|
|||
chan = MHI_TRE_GET_EV_CHID(local_rp);
|
||||
if (chan >= mhi_cntrl->max_chan) {
|
||||
MHI_ERR("invalid channel id %u\n", chan);
|
||||
continue;
|
||||
goto next_er_element;
|
||||
}
|
||||
mhi_chan = &mhi_cntrl->mhi_chan[chan];
|
||||
|
||||
|
|
@ -1333,6 +1333,7 @@ int mhi_process_data_event_ring(struct mhi_controller *mhi_cntrl,
|
|||
event_quota--;
|
||||
}
|
||||
|
||||
next_er_element:
|
||||
mhi_recycle_ev_ring_element(mhi_cntrl, ev_ring);
|
||||
local_rp = ev_ring->rp;
|
||||
dev_rp = mhi_to_virtual(ev_ring, er_ctxt->rp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue