summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZheng Yu <zheng.yu@northwestern.edu>2025-07-29 01:22:14 +0000
committerDave Kleikamp <dave.kleikamp@oracle.com>2025-07-29 08:34:57 -0500
commit856db37592021e9155384094e331e2d4589f28b1 (patch)
tree10449880ccc71af15e1886b48dab927f6780bb81 /tools/perf/scripts/python
parentb89798e79cf79b03af8797391f1f844efe924819 (diff)
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: a5f5e4698f8abbb25fe4959814093fb5bfa1aa9d ("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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions