Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff0901f8 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Fix the return value of rpc_run_bc_task()



Currently rpc_run_bc_task() will return NULL if the task allocation failed.
However the only caller is bc_send, which assumes that the return value
will be an ERR_PTR.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent c9acb42e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -659,6 +659,7 @@ struct rpc_task *rpc_run_bc_task(struct rpc_rqst *req,
	task = rpc_new_task(&task_setup_data);
	if (!task) {
		xprt_free_bc_request(req);
		task = ERR_PTR(-ENOMEM);
		goto out;
	}
	task->tk_rqstp = req;