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: Ic6235569619ef634021f92abb668411220e0bf67
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user