提交 109728cc 编写于 作者: K Kirill Tkhai 提交者: Miklos Szeredi

fuse: Add missed unlock_page() to fuse_readpages_fill()

The above error path returns with page unlocked, so this place seems also
to behave the same.

Fixes: f8dbdf81 ("fuse: rework fuse_readpages()")
Signed-off-by: NKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 a2477b0e
...@@ -866,6 +866,7 @@ static int fuse_readpages_fill(void *_data, struct page *page) ...@@ -866,6 +866,7 @@ static int fuse_readpages_fill(void *_data, struct page *page)
} }
if (WARN_ON(req->num_pages >= req->max_pages)) { if (WARN_ON(req->num_pages >= req->max_pages)) {
unlock_page(page);
fuse_put_request(fc, req); fuse_put_request(fc, req);
return -EIO; return -EIO;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册