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

Commit d4557ad6 authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu Committed by Gerrit - the friendly Code Review server
Browse files

msm: ADSPRPC: Fix for NULL pointer dereference



verify fl->sctx to avoid NULL pointer dereference
in fastrpc_device_ioctl

Change-Id: Ie6e45d4e5ddbfb592bf2a891730aab071ffbd538
Acked-by: default avatarChenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent 0fda0080
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2059,6 +2059,7 @@ static int fastrpc_get_info(struct fastrpc_file *fl, uint32_t *info)
	VERIFY(err, fl && fl->sctx);
	if (err)
		goto bail;
	if (fl->sctx)
		*info = (fl->sctx->smmu.enabled ? 1 : 0);
bail:
	return err;