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

Commit bab1a1f5 authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa: Null pointer check before accessing IMP pointer



This fix NULL pointer checks IMP pointer before accessing it.

Change-Id: I719d6b9e18d29d9c6534cb2fa963f4b69d24b82e
Acked-by: default avatarJyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 78204b52
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1005,6 +1005,9 @@ void imp_handle_modem_shutdown(void)
{
	IMP_FUNC_ENTRY();

	if (!imp_ctx)
		return;

	mutex_lock(&imp_ctx->mutex);

	if (imp_ctx->state == IMP_INVALID) {