]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
NFSv4: Doh! Typo in the fix to nfs41_walk_client_list
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 10 Apr 2013 16:44:18 +0000 (12:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Apr 2013 16:52:12 +0000 (09:52 -0700)
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 <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4client.c

index 5a43da066a634c5176aecc8cd4f94e1292c4cbf9..c53189db8953f4c8c1d74176b35233759d881ec7 100644 (file)
@@ -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;