Navigation Menu

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
commit b20d37c upstream.

Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Trond Myklebust authored and gregkh committed Sep 20, 2010
1 parent 801c1ac commit 5c41628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/client.c
Expand Up @@ -274,7 +274,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 5c41628

Please sign in to comment.