summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2016-02-05 22:08:37 +0100
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-02-06 02:13:53 +0100
commit02a95dee8cf03a73982f9cabf549c04ae354bed7 (patch)
treebecd849192f7b026367fac68f9cca21e42a28fff /fs/nfs
parentpnfs/NFSv4.1: Add multipath capabilities to pNFS flexfiles servers over NFSv3 (diff)
downloadlinux-02a95dee8cf03a73982f9cabf549c04ae354bed7.tar.xz
linux-02a95dee8cf03a73982f9cabf549c04ae354bed7.zip
NFS add callback_ops to nfs4_proc_bind_conn_to_session_callback
Fix oops when NULL callback_ops pointer accessed in rpc_init_task Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4proc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 36471e013a73..dbc3dc2f65cd 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -6782,6 +6782,15 @@ nfs41_same_server_scope(struct nfs41_server_scope *a,
return false;
}
+static void
+nfs4_bind_one_conn_to_session_done(struct rpc_task *task, void *calldata)
+{
+}
+
+static const struct rpc_call_ops nfs4_bind_one_conn_to_session_ops = {
+ .rpc_call_done = &nfs4_bind_one_conn_to_session_done,
+};
+
/*
* nfs4_proc_bind_one_conn_to_session()
*
@@ -6810,6 +6819,7 @@ int nfs4_proc_bind_one_conn_to_session(struct rpc_clnt *clnt,
struct rpc_task_setup task_setup_data = {
.rpc_client = clnt,
.rpc_xprt = xprt,
+ .callback_ops = &nfs4_bind_one_conn_to_session_ops,
.rpc_message = &msg,
.flags = RPC_TASK_TIMEOUT,
};