Skip to content

Commit

Permalink
NFS: Fix a typo in nfs_sockaddr_match_ipaddr6
Browse files Browse the repository at this point in the history
Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 12, 2010
1 parent db5fe26 commit b20d37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/client.c
Expand Up @@ -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,
Expand Down

0 comments on commit b20d37c

Please sign in to comment.