]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:05 +0000 (18:27 -0600)
commit607f8acb842d81ab83895d458dacbcbf62729d7d
tree66f6b4eb1e0bf15b5c0ddba8c9a8c3cdd9082e5d
parent8900c903a85433be3b66fbbf0e15ff6bba0678b0
NFSv4: Fix NFSv4 reference counting for trunked sessions

commit 4ae19c2dd713edb7b8ad3d4ab9d234ed5dcb6b98 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4client.c