mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Merge "mhi: core: Error handling for pending packets in mission_mode"
This commit is contained in:
commit
7045f4374a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user