projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88ac6b7
)
NFS: Fix use after free in write error path
author
Fred Isaman
<fred.isaman@gmail.com>
Fri, 14 Apr 2017 18:24:28 +0000
(14:24 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:44:48 +0000
(15:44 +0200)
commit
1f84ccdf37d0db3a70714d02d51b0b6d45887fb8
upstream.
Signed-off-by: Fred Isaman <fred.isaman@gmail.com>
Fixes: 0bcbf039f6b2b ("nfs: handle request add failure properly")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/write.c
patch
|
blob
|
history
diff --git
a/fs/nfs/write.c
b/fs/nfs/write.c
index 53211838f72aac44c416b13ac926f3533d7e2553..e4772a8340f831260e68906a48bdaa24aca5afba 100644
(file)
--- a/
fs/nfs/write.c
+++ b/
fs/nfs/write.c
@@
-548,9
+548,9
@@
static void nfs_write_error_remove_page(struct nfs_page *req)
{
nfs_unlock_request(req);
nfs_end_page_writeback(req);
- nfs_release_request(req);
generic_error_remove_page(page_file_mapping(req->wb_page),
req->wb_page);
+ nfs_release_request(req);
}
/*