diff options
| author | Alok Chauhan <alokc@codeaurora.org> | 2014-09-23 16:29:54 +0530 |
|---|---|---|
| committer | Alok Chauhan <alokc@codeaurora.org> | 2014-12-02 12:06:24 +0530 |
| commit | dbbfab3fc43af83e3578c291d660a44a0d7b59cc (patch) | |
| tree | bcd33dff8d42023e8eb221e441bdfa47ff784c90 | |
| parent | ad89699a0ac01f292856723a28b18463b14f0a0e (diff) | |
msm: msm_bus: Suspected fix for deadlock
mutex is not released while checking for
null pdata which can lead to possible deadlock
condition.
Change-Id: I1dc3efd725df5bb75c96434a81d9a8f3f868cd0a
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
| -rw-r--r-- | arch/arm/mach-msm/msm_bus/msm_bus_arb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/msm_bus/msm_bus_arb.c b/arch/arm/mach-msm/msm_bus/msm_bus_arb.c index 66854bbc472..8cb9495e5ed 100644 --- a/arch/arm/mach-msm/msm_bus/msm_bus_arb.c +++ b/arch/arm/mach-msm/msm_bus/msm_bus_arb.c @@ -926,7 +926,8 @@ int msm_bus_scale_client_update_request(uint32_t cl, unsigned index) pdata = client->pdata; if (!pdata) { MSM_BUS_ERR("Null pdata passed to update-request\n"); - return -ENXIO; + ret = -ENXIO; + goto err; } if (index >= pdata->num_usecases) { |
