summaryrefslogtreecommitdiff
path: root/drivers/staging/ath6kl/htc2/AR6000/ar6k.c
diff options
context:
space:
mode:
authorVipin Mehta <vmehta@atheros.com>2011-02-18 13:13:09 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 13:28:51 -0800
commit774c1fe2fe9f14c657deb63705ef044f7af9a6cb (patch)
treeddf0b8a46b37bc4122399fcb08e9319d827c548f /drivers/staging/ath6kl/htc2/AR6000/ar6k.c
parentfb9b548717444c82eb2d196c91729421ee68d4be (diff)
staging: ath6kl: Fixing a memory leak
Virtual Scatter Gather Lists not getting freed during the HTCStop(). The patch adds some clean up code in the code path. Signed-off-by: Vipin Mehta <vmehta@atheros.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/ath6kl/htc2/AR6000/ar6k.c')
-rw-r--r--drivers/staging/ath6kl/htc2/AR6000/ar6k.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/ath6kl/htc2/AR6000/ar6k.c b/drivers/staging/ath6kl/htc2/AR6000/ar6k.c
index 6083231cdbb0..ff0480b5254b 100644
--- a/drivers/staging/ath6kl/htc2/AR6000/ar6k.c
+++ b/drivers/staging/ath6kl/htc2/AR6000/ar6k.c
@@ -810,6 +810,15 @@ static int DevSetupVirtualScatterSupport(AR6K_DEVICE *pDev)
return status;
}
+int DevCleanupMsgBundling(AR6K_DEVICE *pDev)
+{
+ if(NULL != pDev)
+ {
+ DevCleanupVirtualScatterSupport(pDev);
+ }
+
+ return 0;
+}
int DevSetupMsgBundling(AR6K_DEVICE *pDev, int MaxMsgsPerTransfer)
{