staging: ath6kl: Fixing memory leak
authorVipin Mehta <vmehta@atheros.com>
Fri, 18 Feb 2011 21:13:12 +0000 (13:13 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 21:28:52 +0000 (13:28 -0800)
The patch fixes a mismatch in the allocation and free of scatter HIF bus
requests in the suspend/resume path.

Signed-off-by: Vipin Mehta <vmehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c

index 4d6feeae2882b6bf8b9d505103866e6d85f10249..850472404ff4e27f1712b809d490f215a8535630 100644 (file)
@@ -1092,6 +1092,7 @@ static int hifDeviceSuspend(struct device *dev)
             device->is_suspend = false;
         }
     }
+    CleanupHIFScatterResources(device);
     AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: -hifDeviceSuspend\n"));
 
     switch (status) {