msm: memshare: relaese mutex if req client id is not found
This fixes the smatch warning below: drivers/soc/qcom/memshare/msm_memshare.c:570 handle_alloc_generic_req() warn: inconsistent returns 'mutex:&memsh_drv->mem_share'. Bug: 35898203 Change-Id: I86f3d77c9bb471b1bc26360e11e378fa3d1a3f66 Signed-off-by: David Lin <dtwlin@google.com>
This commit is contained in:
parent
f0e5b9bd6f
commit
c56f56a251
1 changed files with 1 additions and 0 deletions
|
@ -522,6 +522,7 @@ static int handle_alloc_generic_req(void *req_h, void *req, void *conn_h)
|
|||
alloc_req->proc_id);
|
||||
kfree(alloc_resp);
|
||||
alloc_resp = NULL;
|
||||
mutex_unlock(&memsh_drv->mem_share);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue