mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 20:48:49 +08:00
NFSv4: It's perfectly legal for clp to be NULL here....
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
fd6840714d
commit
2dec51466a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user