diff options
| author | Jesper Juhl <[email protected]> | 2011-01-23 12:19:55 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2011-01-25 07:20:24 +0000 |
| commit | 986e3f6e2b4582d9a7e61de5090042d5af85da44 (patch) | |
| tree | 8f5f26ea8ae242c242b71d7a50c859852cee8cb5 /net/ipv4/tcp_input.c | |
| parent | pch_gbe: don't use flush_scheduled_work() (diff) | |
| download | kernel-986e3f6e2b4582d9a7e61de5090042d5af85da44.tar.gz kernel-986e3f6e2b4582d9a7e61de5090042d5af85da44.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
