Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c0aa2a5 authored by Alok Chauhan's avatar Alok Chauhan
Browse files

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: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 169417fe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -912,7 +912,8 @@ static int update_request_legacy(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) {