summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-16 18:30:44 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-16 19:14:42 +0200
commite9b7e91745fa9df94900c8ab08e633f336686098 (patch)
tree1f306a155f3117e10b06f9e9f7a652d84c3d00b8 /fs/nfs
parentNFSv4.1: Declare osd_pri_2_pnfs_err(), objio_init_read/write to be static (diff)
downloadlinux-e9b7e91745fa9df94900c8ab08e633f336686098.tar.xz
linux-e9b7e91745fa9df94900c8ab08e633f336686098.zip
NFSv4: Fix the return value for nfs_callback_start_svc
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/callback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index 9a521fb39869..5088b57b078a 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -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;