nfs: fix some issues in nfs41_proc_reclaim_complete()

The original code passed an ERR_PTR() to rpc_put_task() and instead of
returning zero on success it returned -ENOMEM.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

authored by Dan Carpenter and committed by Trond Myklebust acf82b85 ba8b06e6

+4 -1
+4 -1
fs/nfs/nfs4proc.c
··· 5218 5218 msg.rpc_resp = &calldata->res; 5219 5219 task_setup_data.callback_data = calldata; 5220 5220 task = rpc_run_task(&task_setup_data); 5221 - if (IS_ERR(task)) 5221 + if (IS_ERR(task)) { 5222 5222 status = PTR_ERR(task); 5223 + goto out; 5224 + } 5223 5225 rpc_put_task(task); 5226 + return 0; 5224 5227 out: 5225 5228 dprintk("<-- %s status=%d\n", __func__, status); 5226 5229 return status;