Commit 0c86b369 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Kleber Sacilotto de Souza

fuse: Add missed unlock_page() to fuse_readpages_fill()

BugLink: https://bugs.launchpad.net/bugs/1792392

commit 109728cc upstream.

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: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 7efbccca
...@@ -879,6 +879,7 @@ static int fuse_readpages_fill(void *_data, struct page *page) ...@@ -879,6 +879,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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment