VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Kirill Tkhai <ktkhai@virtuozzo.com> 2018-07-19 15:49:39 +0300 committer: Miklos Szeredi <mszeredi@redhat.com> 2018-07-26 16:13:12 +0200 commit: 109728ccc5933151c68d1106e4065478a487a323 parent: a2477b0e67c52f4364a47c3ad70902bc2a61bd4c
Commit Summary:
fuse: Add missed unlock_page() to fuse_readpages_fill()
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index a201fb0ac64f..aa23749a943b 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -866,6 +866,7 @@ static int fuse_readpages_fill(void *_data, struct page *page)
 	}
 
 	if (WARN_ON(req->num_pages >= req->max_pages)) {
+		unlock_page(page);
 		fuse_put_request(fc, req);
 		return -EIO;
 	}