Merge "mhi: core: Error handling for pending packets in mission_mode"

This commit is contained in:
qctecmdr 2020-07-29 05:49:33 -07:00 committed by Gerrit - the friendly Code Review server
commit 7045f4374a

View File

@ -1912,7 +1912,8 @@ int mhi_prepare_channel(struct mhi_controller *mhi_cntrl,
return 0;
error_dec_pendpkt:
atomic_dec(&mhi_cntrl->pending_pkts);
if (in_mission_mode)
atomic_dec(&mhi_cntrl->pending_pkts);
error_pm_state:
if (!mhi_chan->offload_ch)
mhi_deinit_chan_ctxt(mhi_cntrl, mhi_chan);