mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
NFS: Fix use after free in write error path
commit1f84ccdf37upstream. Signed-off-by: Fred Isaman <fred.isaman@gmail.com> Fixes:0bcbf039f6("nfs: handle request add failure properly") Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
88ac6b7e0c
commit
a8c35e5c88
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user