diff options
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index c368ad658236..3fb799ff55c9 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -1386,8 +1386,10 @@ cifs_find_tcp_session(struct sockaddr_storage *addr) | |||
1386 | server->addr.sockAddr.sin_addr.s_addr)) | 1386 | server->addr.sockAddr.sin_addr.s_addr)) |
1387 | continue; | 1387 | continue; |
1388 | else if (addr->ss_family == AF_INET6 && | 1388 | else if (addr->ss_family == AF_INET6 && |
1389 | !ipv6_addr_equal(&server->addr.sockAddr6.sin6_addr, | 1389 | (!ipv6_addr_equal(&server->addr.sockAddr6.sin6_addr, |
1390 | &addr6->sin6_addr)) | 1390 | &addr6->sin6_addr) || |
1391 | server->addr.sockAddr6.sin6_scope_id != | ||
1392 | addr6->sin6_scope_id)) | ||
1391 | continue; | 1393 | continue; |
1392 | 1394 | ||
1393 | ++server->srv_count; | 1395 | ++server->srv_count; |