Skip to content

Commit

Permalink
msm: msm_bus: Suspected fix for deadlock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alokchauhan2007 authored and imoseyon committed Oct 3, 2014
1 parent 7d1235f commit efa57cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/mach-msm/msm_bus/msm_bus_arb.c
Expand Up @@ -630,7 +630,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) {
Expand Down

0 comments on commit efa57cd

Please sign in to comment.