SDM660: ADSPRPC: Fix for NULL pointer dereference
Fixing NULL pointer dereference in fastrpc_device_ioctl Change-Id: I240e6eae69f9ab4831352a8bf160d5f0e8a98b1b Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com> Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
This commit is contained in:
parent
5404e35069
commit
6e853a66c3
1 changed files with 2 additions and 1 deletions
|
@ -2552,6 +2552,7 @@ static int fastrpc_get_info(struct fastrpc_file *fl, uint32_t *info)
|
||||||
if (err)
|
if (err)
|
||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
if (fl->sctx)
|
||||||
*info = (fl->sctx->smmu.enabled ? 1 : 0);
|
*info = (fl->sctx->smmu.enabled ? 1 : 0);
|
||||||
bail:
|
bail:
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Add table
Reference in a new issue