Commit b20d37ca9561711c6a3c4b859c2855f49565e061
1 parent
db5fe26541
Exists in
master
and in
7 other branches
NFS: Fix a typo in nfs_sockaddr_match_ipaddr6
Reported-by: Ben Greear <greearb@candelatech.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: stable@kernel.org
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/nfs/client.c
... | ... | @@ -275,7 +275,7 @@ |
275 | 275 | sin1->sin6_scope_id != sin2->sin6_scope_id) |
276 | 276 | return 0; |
277 | 277 | |
278 | - return ipv6_addr_equal(&sin1->sin6_addr, &sin1->sin6_addr); | |
278 | + return ipv6_addr_equal(&sin1->sin6_addr, &sin2->sin6_addr); | |
279 | 279 | } |
280 | 280 | #else /* !defined(CONFIG_IPV6) && !defined(CONFIG_IPV6_MODULE) */ |
281 | 281 | static int nfs_sockaddr_match_ipaddr6(const struct sockaddr *sa1, |