diff options
| author | Manoj Prabhu B <bmanoj@codeaurora.org> | 2016-06-13 12:52:48 +0530 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-13 19:06:29 -0700 |
| commit | 07ab290b8a4948ea6607726e03f10691fd36c4e6 (patch) | |
| tree | 18e559620f21f68657a07fba92a5b984c1a02f94 | |
| parent | 1eccf8da488efcfc5bc3c3e97bb37de007ffb25c (diff) | |
diag: dci: Fix possible race condition during SSR
This patch fixes the possible race condition
because of the stray dci_mutex unlock statements.
CRs-Fixed: 1027461
Change-Id: I10f3c6d1e2d3c6e71be04e3206273aad7971a6b5
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
| -rw-r--r-- | drivers/char/diag/diag_dci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/diag/diag_dci.c b/drivers/char/diag/diag_dci.c index 1000b2595a83..b830334dc701 100644 --- a/drivers/char/diag/diag_dci.c +++ b/drivers/char/diag/diag_dci.c @@ -2964,7 +2964,6 @@ int diag_dci_deinit_client(struct diag_dci_client_tbl *entry) diag_update_userspace_clients(DCI_LOG_MASKS_TYPE); ret = dci_ops_tbl[token].send_log_mask(token); if (ret != DIAG_DCI_NO_ERROR) { - mutex_unlock(&driver->dci_mutex); return ret; } kfree(entry->dci_event_mask); @@ -2973,7 +2972,6 @@ int diag_dci_deinit_client(struct diag_dci_client_tbl *entry) diag_update_userspace_clients(DCI_EVENT_MASKS_TYPE); ret = dci_ops_tbl[token].send_event_mask(token); if (ret != DIAG_DCI_NO_ERROR) { - mutex_unlock(&driver->dci_mutex); return ret; } |
