Skip to content

Commit

Permalink
NFSv4: Doh! Typo in the fix to nfs41_walk_client_list
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: <[email protected]> # 3.7.x: 7b1f1fd: NFSv4/4.1: Fix bugs in nfs4[01]_walk_client_list
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Apr 10, 2013
1 parent fa33294 commit eb04e0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfs/nfs4client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb04e0a

Please sign in to comment.