From: Trond Myklebust Date: Sun, 12 Sep 2010 23:55:26 +0000 (-0400) Subject: NFS: Fix a typo in nfs_sockaddr_match_ipaddr6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b20d37ca9561711c6a3c4b859c2855f49565e061;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git NFS: Fix a typo in nfs_sockaddr_match_ipaddr6 Reported-by: Ben Greear Signed-off-by: Trond Myklebust Cc: stable@kernel.org --- diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 4e7df2adb212..e7340729af89 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -275,7 +275,7 @@ static int nfs_sockaddr_match_ipaddr6(const struct sockaddr *sa1, sin1->sin6_scope_id != sin2->sin6_scope_id) return 0; - return ipv6_addr_equal(&sin1->sin6_addr, &sin1->sin6_addr); + return ipv6_addr_equal(&sin1->sin6_addr, &sin2->sin6_addr); } #else /* !defined(CONFIG_IPV6) && !defined(CONFIG_IPV6_MODULE) */ static int nfs_sockaddr_match_ipaddr6(const struct sockaddr *sa1,