aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r--drivers/net/wireless/libertas/wext.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index 4ef5b9e00c77..19c2873d2d78 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -32,10 +32,8 @@ static inline void libertas_postpone_association_work(wlan_private *priv)
32static inline void libertas_cancel_association_work(wlan_private *priv) 32static inline void libertas_cancel_association_work(wlan_private *priv)
33{ 33{
34 cancel_delayed_work(&priv->assoc_work); 34 cancel_delayed_work(&priv->assoc_work);
35 if (priv->adapter->pending_assoc_req) { 35 kfree(priv->adapter->pending_assoc_req);
36 kfree(priv->adapter->pending_assoc_req); 36 priv->adapter->pending_assoc_req = NULL;
37 priv->adapter->pending_assoc_req = NULL;
38 }
39} 37}
40 38
41 39