Skip to content

Commit

Permalink
NFSv4: Fix the return value for nfs_callback_start_svc
Browse files Browse the repository at this point in the history
returning PTR_ERR(cb_info->task) just after we have set it to
NULL looks like a typo...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 16, 2012
1 parent 2e928e4 commit e9b7e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static int nfs_callback_start_svc(int minorversion, struct rpc_xprt *xprt,
svc_exit_thread(cb_info->rqst);
cb_info->rqst = NULL;
cb_info->task = NULL;
return PTR_ERR(cb_info->task);
return ret;
}
dprintk("nfs_callback_up: service started\n");
return 0;
Expand Down

0 comments on commit e9b7e91

Please sign in to comment.