qcacld-3.0: Fix possible dereference of NULL pointer
Fix possible dereference of pkt_stats_dump being NULL Change-Id: I7fd67b02c3b7cb4f1bfe7c6f4641f6d881e25abd CRs-Fixed: 1086146
This commit is contained in:

committed by
Prakash Dhavali

parent
5695e2ad23
commit
4d5efb943b
@@ -1221,7 +1221,7 @@ void wlan_pkt_stats_to_logger_thread(void *pl_hdr, void *pkt_dump, void *data)
|
|||||||
|
|
||||||
spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, flags);
|
spin_lock_irqsave(&gwlan_logging.pkt_stats_lock, flags);
|
||||||
|
|
||||||
if (!gwlan_logging.pkt_stats_pcur_node) {
|
if (!gwlan_logging.pkt_stats_pcur_node || (NULL == pkt_stats_dump)) {
|
||||||
spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, flags);
|
spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, flags);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user