Browse Source

staging: ath6kl: Fixing memory leak

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>
Vipin Mehta 14 years ago
parent
commit
0ad7fdde6c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c

+ 1 - 0
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c

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