Commit 46805acb authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: free_scanqueue(): Use _rtw_free_network23a()

Use _rtw_free_network23() so elements are freed in one place.
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8d7fb1b8
...@@ -831,9 +831,9 @@ static void free_scanqueue(struct mlme_priv *pmlmepriv) ...@@ -831,9 +831,9 @@ static void free_scanqueue(struct mlme_priv *pmlmepriv)
phead = get_list_head(scan_queue); phead = get_list_head(scan_queue);
list_for_each_safe(plist, ptemp, phead) { list_for_each_safe(plist, ptemp, phead) {
list_del_init(plist);
pnetwork = container_of(plist, struct wlan_network, list); pnetwork = container_of(plist, struct wlan_network, list);
kfree(pnetwork); pnetwork->fixed = false;
_rtw_free_network23a(pmlmepriv, pnetwork);
} }
spin_unlock_bh(&scan_queue->lock); spin_unlock_bh(&scan_queue->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment