diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-25 23:57:41 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-26 00:02:10 +0200 |
commit | 2cf047c994c8a62f65e520342d0287fca8807a53 (patch) | |
tree | ecc1b7c364bc6090201072d6975720febd455e2c /fs/nfs/nfs4state.c | |
parent | NFSv4.1: Ensure we use the correct credentials for session create/destroy (diff) | |
download | linux-2cf047c994c8a62f65e520342d0287fca8807a53.tar.xz linux-2cf047c994c8a62f65e520342d0287fca8807a53.zip |
NFSv4.1: Ensure we use the correct credentials for bind_conn_to_session
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Weston Andros Adamson <dros@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 15878404aa8c..7dbca666283a 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -1779,7 +1779,14 @@ static int nfs4_recall_slot(struct nfs_client *clp) static int nfs4_bind_conn_to_session(struct nfs_client *clp) { - return nfs4_proc_bind_conn_to_session(clp); + struct rpc_cred *cred; + int ret; + + cred = nfs4_get_exchange_id_cred(clp); + ret = nfs4_proc_bind_conn_to_session(clp, cred); + if (cred) + put_rpccred(cred); + return ret; } #else /* CONFIG_NFS_V4_1 */ static int nfs4_reset_session(struct nfs_client *clp) { return 0; } |