mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
mhi: dev: uci: release lock as last step during uci_remove
Release device mutex as last step, otherwise uci_release could free device memory while uci_remove still accessing same device node. CRs-Fixed: 2257246 Change-Id: I746eefc704152b528e80be7676f4a8604abcd38d Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
This commit is contained in:
parent
715523db78
commit
8d010cbb77
@ -540,8 +540,8 @@ static void mhi_uci_remove(struct mhi_device *mhi_dev)
|
||||
return;
|
||||
}
|
||||
|
||||
mutex_unlock(&uci_dev->mutex);
|
||||
MSG_LOG("Exit\n");
|
||||
mutex_unlock(&uci_dev->mutex);
|
||||
}
|
||||
|
||||
static int mhi_uci_probe(struct mhi_device *mhi_dev,
|
||||
|
Loading…
x
Reference in New Issue
Block a user