]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
fuse: replace remaining make_bad_inode() with fuse_make_bad()
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 28 Feb 2024 15:50:49 +0000 (16:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:11:16 +0000 (15:11 +0200)
[ Upstream commit 82e081aebe4d9c26e196c8260005cc4762b57a5d ]

fuse_do_statx() was added with the wrong helper.

Fixes: d3045530bdd2 ("fuse: implement statx")
Cc: <stable@vger.kernel.org> # v6.6
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/fuse/dir.c

index d19cbf34c634174f36a1769f61c691060f32aaa3..d3bc463d9da76afb1511c197212d829ce79692a0 100644 (file)
@@ -1210,7 +1210,7 @@ static int fuse_do_statx(struct inode *inode, struct file *file,
        if (((sx->mask & STATX_SIZE) && !fuse_valid_size(sx->size)) ||
            ((sx->mask & STATX_TYPE) && (!fuse_valid_type(sx->mode) ||
                                         inode_wrong_type(inode, sx->mode)))) {
-               make_bad_inode(inode);
+               fuse_make_bad(inode);
                return -EIO;
        }