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

Commit 5bccce36 authored by Sivan Reinstein's avatar Sivan Reinstein Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: add a NULL check for IPA WAN netdevice in SSR



The change adds a NULL check to IPA WAN driver before invoking
netif_stop_queue in Modem SSR procedure. This prevents issues
when the Modem pre-shutdown indication is received multiple times
consecutively.

Change-Id: I2385923cf7ff4bb932e7799188410428d4ed08e6
Signed-off-by: default avatarSivan Reinstein <sivanr@codeaurora.org>
Acked-by: default avatarDavid Arinzon <darinzon@qti.qualcomm.com>
parent a45accb1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2162,11 +2162,11 @@ static int ssr_notifier_cb(struct notifier_block *this,
			pr_info("IPA received MPSS BEFORE_SHUTDOWN\n");
			atomic_set(&is_ssr, 1);
			ipa_q6_cleanup();
			if (ipa_netdevs[0])
				netif_stop_queue(ipa_netdevs[0]);
			ipa_qmi_stop_workqueues();
			wan_ioctl_stop_qmi_messages();
			ipa_stop_polling_stats();
			atomic_set(&is_ssr, 1);
			if (atomic_read(&is_initialized))
				platform_driver_unregister(&rmnet_ipa_driver);
			pr_info("IPA BEFORE_SHUTDOWN handling is complete\n");