From: J. Bruce Fields Date: Tue, 12 Sep 2006 15:53:23 +0000 (-0400) Subject: NFSv4: It's perfectly legal for clp to be NULL here.... X-Git-Tag: v2.6.19-rc1~1271^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dec51466a08ac1c67da41bfd0518d43d983a2eb;p=linux-2.6 NFSv4: It's perfectly legal for clp to be NULL here.... Signed-off-by: J. Bruce Fields Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 110f80e7bd..ec1938d4b8 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -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; }