From: Vipin Mehta Date: Fri, 18 Feb 2011 21:13:10 +0000 (-0800) Subject: staging: ath6kl: Fixing a memory leak X-Git-Tag: MMI-PSA29.97-13-9~20521^2~486 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1581595dd918481e2df9927e08c71c5635b9af1e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: ath6kl: Fixing a memory leak Fix for a memory leak discovered during suspend/resume testing. Signed-off-by: Vipin Mehta Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ath6kl/os/linux/ar6000_drv.c b/drivers/staging/ath6kl/os/linux/ar6000_drv.c index f084a92c9209..93592af1d052 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