]> git.baikalelectronics.ru Git - kernel.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)
commit09d5b6f2b59f9cd237698e6b3ca95f525690f101
tree2d69c81e4e4b91ce2929174f91b9a9575fcd50d5
parent26f5a7bca93cbfb93fd9190a364eced42c9360f8
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: 8a30e19254e90 ("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