Skip to content

Commit

Permalink
NFSv4: It's perfectly legal for clp to be NULL here....
Browse files Browse the repository at this point in the history
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
J. Bruce Fields authored and Trond Myklebust committed Sep 23, 2006
1 parent fd68407 commit 2dec514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ struct nfs_client *nfs_find_client(const struct sockaddr_in *addr, int nfsversio
clp = __nfs_find_client(addr, nfsversion);
spin_unlock(&nfs_client_lock);

BUG_ON(clp->cl_cons_state == 0);
BUG_ON(clp && clp->cl_cons_state == 0);

return clp;
}
Expand Down

0 comments on commit 2dec514

Please sign in to comment.