提交 2dec5146 编写于 作者: J J. Bruce Fields 提交者: Trond Myklebust

NFSv4: It's perfectly legal for clp to be NULL here....

Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 fd684071
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册