NFS: Fix use after free in write error path

commit 1f84ccdf37 upstream.

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:
Fred Isaman 2017-04-14 14:24:28 -04:00 • committed by Greg Kroah-Hartman
commit a8c35e5c88