VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Ashish Samant <ashish.samant@oracle.com> 2016-03-25 10:53:41 -0700 committer: Miklos Szeredi <mszeredi@veci.piliscsaba.szeredi.hu> 2016-04-25 13:01:04 +0200 commit: 2c932d4c9165ddbe417af612dbe2113df7f2057e parent: 02da2d72174c61988eb4456b53f405e3ebdebce4
Commit Summary:
fuse: Fix return value from fuse_get_user_pages()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 719924d6c706..dcad5e210525 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1295,7 +1295,7 @@ static int fuse_get_user_pages(struct fuse_req *req, struct iov_iter *ii,
 
 	*nbytesp = nbytes;
 
-	return ret;
+	return ret < 0 ? ret : 0;
 }
 
 static inline int fuse_iter_npages(const struct iov_iter *ii_p)