]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
fuse2fs: fix error bailout in op_create
authorDarrick J. Wong <djwong@kernel.org>
Wed, 11 Jun 2025 16:44:01 +0000 (09:44 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 12 Jun 2025 16:57:54 +0000 (14:27 -0230)
commit9f6d1bf3bbf16cef4a08b67894c827059dd401a8
tree7d1c8ba40b7d232bcf5c64ac896a24865e8c5b6f
parent459efa346874a11b4911809e75d6eee157792ca5
fuse2fs: fix error bailout in op_create

Tim Woodall pointed out that op_create returns garbage error codes if
the ext2fs_extent_open2 in op_create fails.  Worse than that, it also
neglects to drop the bfl and leaks temp_path.  Let's fix all that.

Cc: linux-ext4@vger.kernel.org # v1.43
Fixes: 81cbf1ef4f5dab ("misc: add fuse2fs, a FUSE server for e2fsprogs")
Reported-by: Tim Woodall <debianbugs@woodall.me.uk>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c