msm: ipa3: adding a NULL check for ipa3_qmi_ctx before accessing it
In case of frequent SSR triggered, there is a chance that the
ipa3_qmi_ctx is getting freed and not being initialized promptly
as it will be through WQ. So, adding a check before accessing it
in the subsequent SSR.
Change-Id: I9be56787084baba92a01d5ce5258e84f52725e2c
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
diff --git a/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c b/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c
index af242f9..60ed1a0 100644
--- a/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c
+++ b/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c
@@ -3778,7 +3778,7 @@
ipa3_del_a7_qmap_hdr();
}
ipa3_del_mux_qmap_hdrs();
- if (!ipa3_qmi_ctx->modem_cfg_emb_pipe_flt)
+ if (ipa3_qmi_ctx && !ipa3_qmi_ctx->modem_cfg_emb_pipe_flt)
ipa3_wwan_del_ul_flt_rule_to_ipa();
ipa3_cleanup_deregister_intf();
/* reset dl_csum_offload_enabled */