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

Commit 026e4629 authored by Mohammed Javid's avatar Mohammed Javid
Browse files

msm: ipa3: Fix to NULL pointer dereference



Accessing the ipa3_ctx structure pointer before
initializing it. Added code changes to fix NULL
pointer dereference issue.

Change-Id: Ic81cf3bf2f3368d92cf393fba37af6f54a5bce8c
Acked-by: default avatarAshok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent d0edcda0
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -4026,6 +4026,7 @@ static int __init ipa3_wwan_init(void)
	ipa3_qmi_init();

	/* Register for Modem SSR */
	if (ipa3_ctx != NULL)
		/* SSR is not supported yet on IPA 4.0 */
		if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_0)
			return platform_driver_register(&rmnet_ipa_driver);