]> git.baikalelectronics.ru Git - kernel.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)
commit6cc4b4d030bf10f003385538e6ddf102e4a54acc
tree19075d9f089e973f16320ee6354722aaf17460b9
parent7f3e30282b380958e65348f1509b90f11030d416
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: 7b47e22dbc84 ("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