commit | 986e3f6e2b4582d9a7e61de5090042d5af85da44 | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jj@chaosbits.net> | Sun Jan 23 12:19:55 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Jan 24 23:20:24 2011 -0800 |
tree | 8f5f26ea8ae242c242b71d7a50c859852cee8cb5 | |
parent | 2321f3b4afc7c017f34b0cad0624b3b9ebdf2ba4 [diff] |
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 <jj@chaosbits.net> Signed-off-by: David S. Miller <davem@davemloft.net>