diff options
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r-- | fs/nfs/client.c | 2 |
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 | |||
269 | clp = __nfs_find_client(addr, nfsversion); | 269 | clp = __nfs_find_client(addr, nfsversion); |
270 | spin_unlock(&nfs_client_lock); | 270 | spin_unlock(&nfs_client_lock); |
271 | 271 | ||
272 | BUG_ON(clp->cl_cons_state == 0); | 272 | BUG_ON(clp && clp->cl_cons_state == 0); |
273 | 273 | ||
274 | return clp; | 274 | return clp; |
275 | } | 275 | } |