Browse Source

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 <[email protected]>
(cherry picked from commit 3099fdda59d009d3807eb4922d905d331d3447d7)

Change-Id: Ic6235569619ef634021f92abb668411220e0bf67
Ashok Vuyyuru 3 years ago
parent
commit
899b2c58ea
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

+ 2 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

@@ -1394,6 +1394,8 @@ static void ipa3_tasklet_find_freepage(unsigned long data)
 
 
 	sys = (struct ipa3_sys_context *)data;
 	sys = (struct ipa3_sys_context *)data;
 
 
+	if(sys->page_recycle_repl == NULL)
+		return;
 	INIT_LIST_HEAD(&temp_head);
 	INIT_LIST_HEAD(&temp_head);
 	spin_lock_bh(&sys->common_sys->spinlock);
 	spin_lock_bh(&sys->common_sys->spinlock);
 	list_for_each_entry_safe(rx_pkt, tmp,
 	list_for_each_entry_safe(rx_pkt, tmp,