[PATCH V2] ubifs: Call ubifs_iput when ubifs_iget is used

Heiko Schocher hs at denx.de
Sun Aug 11 06:53:10 CEST 2024


Hello Micahel,

On 10.08.24 14:57, Michael Trimarchi wrote:
> The inode should be freed after a reference is get to avoid
> memory leak
> 
> Tested-by: Alexander Dahl <ada at thorsis.com>
> Link: https://lore.kernel.org/u-boot/b698ec3e-d857-6512-8cc9-4edcab0a41b9@denx.de/T/#t
> Link: https://lore.kernel.org/all/8f3a7059-6330-f332-8e9f-729b853e001e@denx.de/T/
> Co-Developed-by: Heiko Schocher <hs at denx.de>
> Signed-off-by: Michael Trimarchi <michael at amarulasolutions.com>
> ---
> V1->V2:
> 	- fix compilation problem on super.c
> RFC->V1:
> 	- Heiko gives more points to address on the patch and review it
> 	- Alexander Dahl test on top of his own series reported in the
> 	  commit message
> 	- add leak on super.c file too from Heiko
> ---
>   fs/ubifs/super.c | 1 +
>   fs/ubifs/ubifs.c | 9 ++++++---
>   2 files changed, 7 insertions(+), 3 deletions(-)

Thanks!

I get:

WARNING: 'Co-developed-by:' is the preferred signature form
#126:
Co-Developed-by: Heiko Schocher <hs at denx.de>

Fixed this when I applied the patch, hope this is okay for you!
Azure build started.

bye,
Heiko

-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list