]> rtime.felk.cvut.cz Git - linux-imx.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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 5 Apr 2013 20:59:15 +0000 (16:59 -0400)
commitb193d59a4863ea670872d76dc99231ddeb598625
treef6bed05e08eb1a3c8b90b994f51c863d19fce59e
parenta58e0be6f6b3eb2079b0b8fedc9df6fa86869f1e
NFSv4: Fix a memory leak in nfs4_discover_server_trunking

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>
Cc: stable@vger.kernel.org [>=3.7]
fs/nfs/nfs4state.c