]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: fix the error handling process in extents_kunit_init).
authorYe Bin <yebin10@huawei.com>
Mon, 30 Mar 2026 13:30:33 +0000 (21:30 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 Apr 2026 02:04:32 +0000 (22:04 -0400)
commit17f73c95d47325000ee68492be3ad76ae09f6f19
treef9615fa053f2f645cb023ffd635bfd318cf21fc9
parentf9c1f7647ac8fb70bebb1615ac112d1568abe339
ext4: fix the error handling process in extents_kunit_init).

The error processing in extents_kunit_init() is improper, causing
resource leakage.
Reconstruct the error handling process to prevent potential resource
leaks

Fixes: cb1e0c1d1fad ("ext4: kunit tests for extent splitting and conversion")
Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://patch.msgid.link/20260330133035.287842-4-yebin@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents-test.c