summaryrefslogtreecommitdiffstats
path: root/drivers/net/korina.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2009-03-11 01:33:20 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-03-11 01:33:20 +0100
commit57df675c60c5cf0748ddba9c7f85afde1530d74d (patch)
tree9ee0df8d0b0b2b374bcaf66ead94886f39ac7220 /drivers/net/korina.c
parentNLM: Shrink the IPv4-only version of nlm_cmp_addr() (diff)
downloadlinux-57df675c60c5cf0748ddba9c7f85afde1530d74d.tar.xz
linux-57df675c60c5cf0748ddba9c7f85afde1530d74d.zip
NLM: Fix GRANT callback address comparison when IPv6 is enabled
The NFS mount command may pass an AF_INET server address to lockd. If lockd happens to be using a PF_INET6 listener, the nlm_cmp_addr() in nlmclnt_grant() will fail to match requests from that host because they will all have a mapped IPv4 AF_INET6 address. Adopt the same solution used in nfs_sockaddr_match_ipaddr() for NFSv4 callbacks: if either address is AF_INET, map it to an AF_INET6 address before doing the comparison. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'drivers/net/korina.c')
0 files changed, 0 insertions, 0 deletions