From: Trond Myklebust Date: Wed, 10 Apr 2013 16:44:18 +0000 (-0400) Subject: NFSv4: Doh! Typo in the fix to nfs41_walk_client_list X-Git-Tag: v3.8.7~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2a85fc20da763b9bb3ec2b959a3c282026b9888d;p=users%2Fjedix%2Flinux-maple.git NFSv4: Doh! Typo in the fix to nfs41_walk_client_list commit eb04e0ac198cec3bab407ad220438dfa65c19c67 upstream. Make sure that we set the status to 0 on success. Missed in testing because it never appears when doing multiple mounts to _different_ servers. Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index 5a43da066a63..c53189db8953 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c @@ -482,6 +482,7 @@ int nfs41_walk_client_list(struct nfs_client *new, atomic_inc(&pos->cl_count); *result = pos; + status = 0; dprintk("NFS: <-- %s using nfs_client = %p ({%d})\n", __func__, pos, atomic_read(&pos->cl_count)); break;