Skip to content

Commit

Permalink
fuse: Add missed unlock_page() to fuse_readpages_fill()
Browse files Browse the repository at this point in the history
The above error path returns with page unlocked, so this place seems also
to behave the same.

Fixes: f8dbdf8 ("fuse: rework fuse_readpages()")
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Kirill Tkhai authored and Miklos Szeredi committed Jul 26, 2018
1 parent a2477b0 commit 109728c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 109728c

Please sign in to comment.