From: Jes Sorensen Date: Mon, 9 Jun 2014 13:16:32 +0000 (+0200) Subject: staging: rtl8723au: free_scanqueue(): Use _rtw_free_network23a() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=46805acb89edec720493e5779459ae8d0ccc680d;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8723au: free_scanqueue(): Use _rtw_free_network23a() Use _rtw_free_network23() so elements are freed in one place. Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_mlme.c b/drivers/staging/rtl8723au/core/rtw_mlme.c index 71ff753b0d59..7c99c37f3df7 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme.c @@ -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);