mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
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:
parent
5695e2ad23
commit
4d5efb943b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue