msm: ipa3: Adding changes to check pointer null or not
Adding changes to check page replish pointer null or not.
Signed-off-by: Sivakanth Vaka <quic_svaka@quicinc.com>
(cherry picked from commit 3099fdda59d009d3807eb4922d905d331d3447d7)
Change-Id: I4e6ea965cd74b4239f2e1c57dc07813dcdba3cf6
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c b/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c
index ccd7dfc..098b87c 100644
--- a/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c
+++ b/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c
@@ -1416,6 +1416,8 @@
sys = (struct ipa3_sys_context *)data;
+ if(sys->page_recycle_repl == NULL)
+ return;
INIT_LIST_HEAD(&temp_head);
spin_lock_bh(&sys->common_sys->spinlock);
list_for_each_entry_safe(rx_pkt, tmp,