]> git.dujemihanovic.xyz Git - u-boot.git/commit
ubifs: Call ubifs_iput when ubifs_iget is used
authorMichael Trimarchi <michael@amarulasolutions.com>
Sat, 10 Aug 2024 12:57:44 +0000 (14:57 +0200)
committerHeiko Schocher <hs@denx.de>
Sun, 11 Aug 2024 04:52:15 +0000 (06:52 +0200)
commitd16bda85ff0762aa96e36fa65d2e3b5342d73d7a
treefaa7d2d071098fe7720b91e816282a98476d8b7e
parentcf7ea719ce60cd885cce5023dfaf7833d9fc1442
ubifs: Call ubifs_iput when ubifs_iget is used

The inode should be freed after a reference is get to avoid
memory leak

Tested-by: Alexander Dahl <ada@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@denx.de>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
fs/ubifs/super.c
fs/ubifs/ubifs.c