]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
bcachefs: add missing inode_walker_exit()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 07:57:39 +0000 (03:57 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 14:04:41 +0000 (10:04 -0400)
fix a small leak

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c

index 6801c37ee803dc79436c87c5ab7213fd1476244d..83bd31b44aad0bf8107b46ccaef46b2d0c468b04 100644 (file)
@@ -2215,6 +2215,8 @@ int bch2_check_xattrs(struct bch_fs *c)
                        NULL, NULL,
                        BCH_TRANS_COMMIT_no_enospc,
                check_xattr(trans, &iter, k, &hash_info, &inode)));
+
+       inode_walker_exit(&inode);
        bch_err_fn(c, ret);
        return ret;
 }