]> 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)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 27 May 2019 09:42:35 +0000 (11:42 +0200)
commit35d6fcbb7c3e296a52136347346a698a35af3fda
tree19075d9f089e973f16320ee6354722aaf17460b9
parentcd6c84d8f0cdc911df435bb075ba22ce3c605b07
fuse: fallocate: fix return with locked inode

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>
Cc: <stable@vger.kernel.org> # v3.5
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c