Files
linux/fs/jfs
Zheng Yu 856db37592 jfs: fix metapage reference count leak in dbAllocCtl
In dbAllocCtl(), read_metapage() increases the reference count of the
metapage. However, when dp->tree.budmin < 0, the function returns -EIO
without calling release_metapage() to decrease the reference count,
leading to a memory leak.

Add release_metapage(mp) before the error return to properly manage
the metapage reference count and prevent the leak.

Fixes: a5f5e4698f ("jfs: fix shift-out-of-bounds in dbSplit")

Signed-off-by: Zheng Yu <zheng.yu@northwestern.edu>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
2025-07-29 08:34:57 -05:00
..
2023-07-24 10:30:01 +02:00
2025-07-14 17:08:13 -05:00
2021-10-18 14:43:23 -06:00
2025-02-13 12:29:02 -06:00