VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Miklos Szeredi <mszeredi@redhat.com> 2019-05-27 11:42:07 +0200 committer: Miklos Szeredi <mszeredi@redhat.com> 2019-05-27 11:42:35 +0200 commit: 35d6fcbb7c3e296a52136347346a698a35af3fda parent: cd6c84d8f0cdc911df435bb075ba22ce3c605b07
Commit Summary:
fuse: fallocate: fix return with locked inode
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 3959f08279e6..143c54f93f2d 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -3055,7 +3055,7 @@ static long fuse_file_fallocate(struct file *file, int mode, loff_t offset,
 	    offset + length > i_size_read(inode)) {
 		err = inode_newsize_ok(inode, offset + length);
 		if (err)
-			return err;
+			goto out;
 	}
 
 	if (!(mode & FALLOC_FL_KEEP_SIZE))