From: Vipin Mehta Date: Fri, 18 Feb 2011 21:13:12 +0000 (-0800) Subject: staging: ath6kl: Fixing memory leak X-Git-Tag: firefly_0821_release~7613^2~2197^2~484 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0ad7fdde6cfba9b0cf716bbd9549b05f195b8ebb;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c b/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c index 4d6feeae2882..850472404ff4 100644 --- a/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c +++ b/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c @@ -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) {