]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: fix bug about IPv6 address scope checking
authorMi Jinlong <mijinlong@cn.fujitsu.com>
Wed, 12 Oct 2011 07:09:34 +0000 (15:09 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 12 Oct 2011 14:30:29 +0000 (10:30 -0400)
commit8e3a87e61e93fc7f585b8b8a38d6e6a7718d2a9f
tree721eff2e021212310ebb22518c7b0d3d8a5bf1cc
parente04f9e1addbce661c11284749615481069311793
nfs: fix bug about IPv6 address scope checking

The result from ipv6_addr_scope() is a set of flags, not a single value,
so we can't just compare the result with  IPV6_ADDR_SCOPE_LINKLOCAL.

This patch fixs the problem, and checks for unequal addresses before
scope_id.

Signed-off-by: Mi Jinlong <mijinlong@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfs/client.c