]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4: Fix double frees in nfs4_test_session_trunk()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 1 Aug 2017 20:02:48 +0000 (16:02 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 2 Aug 2017 13:45:55 +0000 (09:45 -0400)
commitd9cb73300ac0001832c048a489c592263fc28193
tree2d69c81e4e4b91ce2929174f91b9a9575fcd50d5
parentfd40559c8657418385e42f797e0b04bfc0add748
NFSv4: Fix double frees in nfs4_test_session_trunk()

rpc_clnt_add_xprt() expects the callback function to be synchronous, and
expects to release the transport and switch references itself.

Fixes: 04fa2c6bb51b1 ("NFS pnfs data server multipath session trunking")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4client.c
fs/nfs/nfs4proc.c