staging: rtl8723au: free_scanqueue(): Use _rtw_free_network23a()
Use _rtw_free_network23() so elements are freed in one place. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8d7fb1b874
commit
46805acb89
1 changed files with 2 additions and 2 deletions
|
|
@ -831,9 +831,9 @@ static void free_scanqueue(struct mlme_priv *pmlmepriv)
|
|||
phead = get_list_head(scan_queue);
|
||||
|
||||
list_for_each_safe(plist, ptemp, phead) {
|
||||
list_del_init(plist);
|
||||
pnetwork = container_of(plist, struct wlan_network, list);
|
||||
kfree(pnetwork);
|
||||
pnetwork->fixed = false;
|
||||
_rtw_free_network23a(pmlmepriv, pnetwork);
|
||||
}
|
||||
|
||||
spin_unlock_bh(&scan_queue->lock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue