From: Jesper Juhl Date: Sun, 23 Jan 2011 12:19:55 +0000 (+0000) Subject: USB NET KL5KUSB101: Fix mem leak in error path of kaweth_download_firmware() X-Git-Tag: v2.6.38-rc3~29^2~9 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986e3f6e2b4582d9a7e61de5090042d5af85da44;p=pandora-kernel.git USB NET KL5KUSB101: Fix mem leak in error path of kaweth_download_firmware() We will leak the storage allocated by request_firmware() if the size of the firmware is greater than KAWETH_FIRMWARE_BUF_SIZE. This removes the leak by calling release_firmware() before we return -ENOSPC. Signed-off-by: Jesper Juhl Signed-off-by: David S. Miller --- Reading git-diff-tree failed