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:
Tharun Kumar Merugu 2017-05-16 23:40:05 +05:30 committed by Gerrit - the friendly Code Review server
parent 5404e35069
commit 6e853a66c3

View file

@ -2552,6 +2552,7 @@ static int fastrpc_get_info(struct fastrpc_file *fl, uint32_t *info)
if (err)
goto bail;
}
if (fl->sctx)
*info = (fl->sctx->smmu.enabled ? 1 : 0);
bail:
return err;