Messages in this thread | | | Date | Mon, 24 Jan 2011 23:20:35 -0800 (PST) | Subject | Re: [PATCH] USB NET KL5KUSB101: Fix mem leak in error path of kaweth_download_firmware() | From | David Miller <> |
| |
From: Jesper Juhl <jj@chaosbits.net> Date: Sun, 23 Jan 2011 23:19:55 +0100 (CET)
> 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>
Applied, thanks Jesper.
| |