Re: [PATCH] USB NET KL5KUSB101: Fix mem leak in error path ofkaweth_download_firmware()

From: David Miller
Date: Tue Jan 25 2011 - 02:20:08 EST


From: Jesper Juhl <jj@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx>

Applied, thanks Jesper.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/