Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8c35e5c authored by Fred Isaman's avatar Fred Isaman Committed by Greg Kroah-Hartman
Browse files

NFS: Fix use after free in write error path



commit 1f84ccdf37d0db3a70714d02d51b0b6d45887fb8 upstream.

Signed-off-by: default avatarFred Isaman <fred.isaman@gmail.com>
Fixes: 0bcbf039 ("nfs: handle request add failure properly")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 88ac6b7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/*