Re: [PATCH v2] memory: brcmstb_dpfe: Fix memory leak
From: Krzysztof Kozlowski
Date: Thu Aug 20 2020 - 14:53:01 EST
On Thu, Aug 20, 2020 at 06:21:18PM +0100, Alex Dewar wrote:
> In brcmstb_dpfe_download_firmware(), memory is allocated to variable fw by
> firmware_request_nowarn(), but never released. Fix up to release fw on
> all return paths.
>
> Signed-off-by: Alex Dewar <alex.dewar90@xxxxxxxxx>
> ---
> v2: Don't assign ret unnecessarily (Krzysztof)
> ---
> drivers/memory/brcmstb_dpfe.c | 16 ++++++++++------
Thanks, applied with acks, CC stable and Fixes tag.
Best regards,
Krzysztof