NFS: Fix a use-after-free case in nfs_async_rename()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 21 Sep 2010 20:52:40 +0000 (16:52 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 21 Sep 2010 20:52:40 +0000 (16:52 -0400)
commitf7732d6573c4f29fc1ca5d384bbf82ddfa115030
treee0f94b8406908e4e3081afa436a2aa8eed06773d
parentd3d4152a5d59af9e13a73efa9e9c24383fbe307f
NFS: Fix a use-after-free case in nfs_async_rename()

The call to nfs_async_rename_release() after rpc_run_task() is incorrect.
The rpc_run_task() is always guaranteed to call the ->rpc_release() method.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/unlink.c