Commit 1f84ccdf authored by Fred Isaman's avatar Fred Isaman Committed by Trond Myklebust

NFS: Fix use after free in write error path

Signed-off-by: default avatarFred Isaman <fred.isaman@gmail.com>
Fixes: 0bcbf039 ("nfs: handle request add failure properly")
Cc: stable@vger.kernel.org # v4.5+
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 43b7d964
......@@ -561,9 +561,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);
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment