diff options
author | Alex Dewar <alex.dewar90@gmail.com> | 2020-08-20 20:21:18 +0300 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2020-08-20 21:52:59 +0300 |
commit | 4da1edcf8f226d53c02c6b0e3077d581115b30d0 (patch) | |
tree | 085b5d353b1ae9305dda8bb04e5c46c4e6fffce0 /drivers/memory/fsl_ifc.c | |
parent | 296050a04c9e4e4017638599de8ef0c3cce375b3 (diff) | |
download | linux-4da1edcf8f226d53c02c6b0e3077d581115b30d0.tar.xz |
memory: brcmstb_dpfe: Fix memory leak
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.
Cc: <stable@vger.kernel.org>
Fixes: 2f330caff577 ("memory: brcmstb: Add driver for DPFE")
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Acked-by: Markus Mayer <mmayer@broadcom.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20200820172118.781324-1-alex.dewar90@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'drivers/memory/fsl_ifc.c')
0 files changed, 0 insertions, 0 deletions