summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorVipin Mehta <vmehta@atheros.com>2011-02-18 13:13:10 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 13:28:51 -0800
commit1581595dd918481e2df9927e08c71c5635b9af1e (patch)
tree8272c034b31f8e08c67d172f103b616f25ce9e4e /drivers/staging
parent774c1fe2fe9f14c657deb63705ef044f7af9a6cb (diff)
staging: ath6kl: Fixing a memory leak
Fix for a memory leak discovered during suspend/resume testing. Signed-off-by: Vipin Mehta <vmehta@atheros.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/ath6kl/os/linux/ar6000_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/ath6kl/os/linux/ar6000_drv.c b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
index f084a92c920..93592af1d05 100644
--- a/drivers/staging/ath6kl/os/linux/ar6000_drv.c
+++ b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
@@ -2052,6 +2052,9 @@ ar6000_stop_endpoint(struct net_device *dev, bool keepprofile, bool getdbglogs)
}
/* Done with cookies */
ar6000_cookie_cleanup(ar);
+
+ /* cleanup any allocated AMSDU buffers */
+ ar6000_cleanup_amsdu_rxbufs(ar);
}
/*
* We need to differentiate between the surprise and planned removal of the