]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4: Fix a memory leak in nfs4_discover_server_trunking
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 4 Apr 2013 19:55:00 +0000 (15:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Apr 2013 16:52:10 +0000 (09:52 -0700)
commitc80a1c58deeac0c21cbf8d952c1bd08f1afbe8ed
tree8010ff3262fb4bc9b3c196e25f45115b6fdc0fa2
parent020dff84998201602ae4d00bd38acafc62f5c693
NFSv4: Fix a memory leak in nfs4_discover_server_trunking

commit b193d59a4863ea670872d76dc99231ddeb598625 upstream.

When we assign a new rpc_client to clp->cl_rpcclient, we need to destroy
the old one.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4state.c