aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/sched.c')
-rw-r--r--net/sunrpc/sched.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index cd51b5468332..3fc13bea302d 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -921,8 +921,11 @@ struct rpc_task *rpc_run_task(struct rpc_clnt *clnt, int flags,
921{ 921{
922 struct rpc_task *task; 922 struct rpc_task *task;
923 task = rpc_new_task(clnt, flags, ops, data); 923 task = rpc_new_task(clnt, flags, ops, data);
924 if (task == NULL) 924 if (task == NULL) {
925 if (ops->rpc_release != NULL)
926 ops->rpc_release(data);
925 return ERR_PTR(-ENOMEM); 927 return ERR_PTR(-ENOMEM);
928 }
926 atomic_inc(&task->tk_count); 929 atomic_inc(&task->tk_count);
927 rpc_execute(task); 930 rpc_execute(task);
928 return task; 931 return task;