From a180209d7e680d6182cc184abacb5264e114b785 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Thu, 28 Mar 2019 23:40:03 +0100 Subject: [PATCH] Fix alloc stainfo code --- core/rtw_sta_mgt.c | 4 +--- dkms.conf | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/rtw_sta_mgt.c b/core/rtw_sta_mgt.c index d6aaef1..5fcf21d 100644 --- a/core/rtw_sta_mgt.c +++ b/core/rtw_sta_mgt.c @@ -476,9 +476,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr) /* _enter_critical_bh(&(pfree_sta_queue->lock), &irqL); */ _enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL2); - if (_rtw_queue_empty(pfree_sta_queue) == _TRUE) { - /* _exit_critical_bh(&(pfree_sta_queue->lock), &irqL); */ - _exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL2); + if (!pstapriv->padapter->pnetdev || _rtw_queue_empty(pfree_sta_queue) == _TRUE) { psta = NULL; } else { psta = LIST_CONTAINOR(get_next(&pfree_sta_queue->queue), struct sta_info, list); diff --git a/dkms.conf b/dkms.conf index ffe13a3..f976204 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="realtek-rtl88xxau" -PACKAGE_VERSION="5.2.20.2~20190315" +PACKAGE_VERSION="5.2.20.2~20190429" CLEAN="'make' clean" BUILT_MODULE_NAME[0]=88XXau PROCS_NUM=`nproc`