Explorar o código

Merge "msm: ipa3: Adding changes to check pointer null or not"

qctecmdr hai 1 ano
pai
achega
e4deb4b165
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
 
+	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,