bus: mhi: core: Delete ring element after processing misc command
An out of order completion is seen since the ring element for any misc command is not deleted after it is processed. Fix this issue by deleting the ring element after misc command processing and avoid a kernel panic. Change-Id: Ie116a3c964ed2a1090e8ccc010c3781332dc88e8 Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
This commit is contained in:
@ -746,7 +746,7 @@ static void mhi_process_cmd_completion(struct mhi_controller *mhi_cntrl,
|
||||
if (MHI_TRE_GET_CMD_TYPE(cmd_pkt) == MHI_CMD_SFR_CFG) {
|
||||
mhi_misc_cmd_completion(mhi_cntrl, MHI_CMD_SFR_CFG,
|
||||
MHI_TRE_GET_EV_CODE(tre));
|
||||
return;
|
||||
goto exit_cmd_completion;
|
||||
}
|
||||
|
||||
chan = MHI_TRE_GET_CMD_CHID(cmd_pkt);
|
||||
|
Reference in New Issue
Block a user