diff options
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r-- | fs/fuse/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 96d513e01a5d..35b6f31ecc38 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
@@ -1722,7 +1722,7 @@ static int fuse_writepage_locked(struct page *page) | |||
1722 | error = -EIO; | 1722 | error = -EIO; |
1723 | req->ff = fuse_write_file_get(fc, fi); | 1723 | req->ff = fuse_write_file_get(fc, fi); |
1724 | if (!req->ff) | 1724 | if (!req->ff) |
1725 | goto err_free; | 1725 | goto err_nofile; |
1726 | 1726 | ||
1727 | fuse_write_fill(req, req->ff, page_offset(page), 0); | 1727 | fuse_write_fill(req, req->ff, page_offset(page), 0); |
1728 | 1728 | ||
@@ -1750,6 +1750,8 @@ static int fuse_writepage_locked(struct page *page) | |||
1750 | 1750 | ||
1751 | return 0; | 1751 | return 0; |
1752 | 1752 | ||
1753 | err_nofile: | ||
1754 | __free_page(tmp_page); | ||
1753 | err_free: | 1755 | err_free: |
1754 | fuse_request_free(req); | 1756 | fuse_request_free(req); |
1755 | err: | 1757 | err: |