NFSv4: Fix NFSv4 reference counting for trunked sessions
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 19 Jan 2013 03:41:53 +0000 (22:41 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 27 Jan 2013 20:51:15 +0000 (15:51 -0500)
commit4ae19c2dd713edb7b8ad3d4ab9d234ed5dcb6b98
tree392b6191b3df070b385564252626b739f0b63de3
parentdee972b967ae111ad5705733de17a3bfc4632311
NFSv4: Fix NFSv4 reference counting for trunked sessions

The reference counting in nfs4_init_client assumes wongly that it
is safe for nfs4_discover_server_trunking() to return a pointer to a
nfs_client prior to bumping the reference count.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Chuck Lever <chuck.lever@oracle.com>
Cc: Ben Greear <greearb@candelatech.com>
Cc: stable@vger.kernel.org [>=3.7]
fs/nfs/nfs4client.c