Commit 02a95dee authored by Andy Adamson's avatar Andy Adamson Committed by Trond Myklebust

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: default avatarAndy Adamson <andros@netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent fc821d59
...@@ -6782,6 +6782,15 @@ nfs41_same_server_scope(struct nfs41_server_scope *a, ...@@ -6782,6 +6782,15 @@ nfs41_same_server_scope(struct nfs41_server_scope *a,
return false; 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() * nfs4_proc_bind_one_conn_to_session()
* *
...@@ -6810,6 +6819,7 @@ int nfs4_proc_bind_one_conn_to_session(struct rpc_clnt *clnt, ...@@ -6810,6 +6819,7 @@ int nfs4_proc_bind_one_conn_to_session(struct rpc_clnt *clnt,
struct rpc_task_setup task_setup_data = { struct rpc_task_setup task_setup_data = {
.rpc_client = clnt, .rpc_client = clnt,
.rpc_xprt = xprt, .rpc_xprt = xprt,
.callback_ops = &nfs4_bind_one_conn_to_session_ops,
.rpc_message = &msg, .rpc_message = &msg,
.flags = RPC_TASK_TIMEOUT, .flags = RPC_TASK_TIMEOUT,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment