diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index c3740f5ab978..8b5f9b9685dd 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -220,8 +220,7 @@ static struct nfs_client *__nfs_find_client(const struct sockaddr_in *addr, int | |||
220 | if (clp->cl_nfsversion != nfsversion) | 220 | if (clp->cl_nfsversion != nfsversion) |
221 | continue; | 221 | continue; |
222 | 222 | ||
223 | if (memcmp(&clp->cl_addr.sin_addr, &addr->sin_addr, | 223 | if (clp->cl_addr.sin_addr.s_addr != addr->sin_addr.s_addr) |
224 | sizeof(clp->cl_addr.sin_addr)) != 0) | ||
225 | continue; | 224 | continue; |
226 | 225 | ||
227 | if (!match_port || clp->cl_addr.sin_port == addr->sin_port) | 226 | if (!match_port || clp->cl_addr.sin_port == addr->sin_port) |