Re: [PATCH v2] memory: brcmstb_dpfe: Fix memory leak

From
Krzysztof Kozlowski <krzk@kernel.org>
Date
2020-08-20 18:53:00
Also in
lkml
Reply to
Alex Dewar, 2020-08-20
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 <redacted>
---
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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (4 messages) 4 messages, 4 authors, last reply 2020-08-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help