summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2006-09-12 17:53:23 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-09-23 05:25:02 +0200
commit2dec51466a08ac1c67da41bfd0518d43d983a2eb (patch)
treeb6df8d1c1dfe41b4aa89d42ba9864358e6eea1d3 /fs
parentNFS: nfs_lookup - don't hash dentry when optimising away the lookup (diff)
downloadlinux-2dec51466a08ac1c67da41bfd0518d43d983a2eb.tar.xz
linux-2dec51466a08ac1c67da41bfd0518d43d983a2eb.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 110f80e7bd4c..ec1938d4b814 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;
}