mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
soc: qcom: qmi_interface: Release mutex lock before return
Mutex lock not released before function return in failure case. Add mutex unlock in failure case. CRs-Fixed: 2463072 Change-Id: I68b23364e8cb1001c0a65b1b831fd3b68894e1a9 Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
This commit is contained in:
parent
e62317caca
commit
4cdda05e9d
1 changed files with 1 additions and 0 deletions
|
|
@ -463,6 +463,7 @@ static void qmi_handle_net_reset(struct qmi_handle *qmi)
|
|||
/* Already qmi_handle_release() started */
|
||||
if (!qmi->sock) {
|
||||
sock_release(sock);
|
||||
mutex_unlock(&qmi->sock_lock);
|
||||
return;
|
||||
}
|
||||
sock_release(qmi->sock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue