projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4237ba4
)
fuse: release temporary page if fuse_writepage_locked() failed
author
Maxim Patlasov
<MPatlasov@parallels.com>
Thu, 10 Jul 2014 11:32:43 +0000
(15:32 +0400)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Mon, 14 Jul 2014 14:17:57 +0000
(16:17 +0200)
tmp_page to be freed if fuse_write_file_get() returns NULL.
Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fuse/file.c
b/fs/fuse/file.c
index 96d513e01a5d534e8717622a4fb2c7b20bb98d64..35b6f31ecc3881928b21fca470de0c8abc43378f 100644
(file)
--- a/
fs/fuse/file.c
+++ b/
fs/fuse/file.c
@@
-1722,7
+1722,7
@@
static int fuse_writepage_locked(struct page *page)
error = -EIO;
req->ff = fuse_write_file_get(fc, fi);
if (!req->ff)
- goto err_
fre
e;
+ goto err_
nofil
e;
fuse_write_fill(req, req->ff, page_offset(page), 0);
@@
-1750,6
+1750,8
@@
static int fuse_writepage_locked(struct page *page)
return 0;
+err_nofile:
+ __free_page(tmp_page);
err_free:
fuse_request_free(req);
err: