]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fuse: fallocate: fix return with locked inode
authorMiklos Szeredi <mszeredi@redhat.com>
Mon, 27 May 2019 09:42:07 +0000 (11:42 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 23 Sep 2019 20:11:48 +0000 (21:11 +0100)
commitcea43f43751b1e6e9d034c629079d1836f3ca82d
tree1798d3cf9159c13897b243366335c0c9b852219b
parente09925b72cc58decfc28f8cf183a24198fba4864
fuse: fallocate: fix return with locked inode

commit 35d6fcbb7c3e296a52136347346a698a35af3fda upstream.

Do the proper cleanup in case the size check fails.

Tested with xfstests:generic/228

Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 0cbade024ba5 ("fuse: honor RLIMIT_FSIZE in fuse_file_fallocate")
Cc: Liu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/fuse/file.c