NFSv4: Fix the return value for nfs_callback_start_svc
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 16 Oct 2012 16:30:44 +0000 (12:30 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 16 Oct 2012 17:14:42 +0000 (13:14 -0400)
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>
fs/nfs/callback.c

index 9a521fb..5088b57 100644 (file)
@@ -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;