aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_atp867x.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-03-01 16:15:16 +0100
committerDavid S. Miller <davem@davemloft.net>2016-03-03 16:35:20 -0500
commit5d150a985520bbe3cb2aa1ceef24a7e32f20c15f (patch)
tree9bcc235f8cd4983e0400a80bbb8e36e1cd33847f /drivers/ata/pata_atp867x.c
parentqmi_wwan: add Sierra Wireless EM74xx device ID (diff)
downloadlinux-dev-5d150a985520bbe3cb2aa1ceef24a7e32f20c15f.tar.xz
linux-dev-5d150a985520bbe3cb2aa1ceef24a7e32f20c15f.zip
ipv6: re-enable fragment header matching in ipv6_find_hdr
When ipv6_find_hdr is used to find a fragment header (caller specifies target NEXTHDR_FRAGMENT) we erronously return -ENOENT for all fragments with nonzero offset. Before commit 9195bb8e381d, when target was specified, we did not enter the exthdr walk loop as nexthdr == target so this used to work. Now we do (so we can skip empty route headers). When we then stumble upon a frag with nonzero frag_off we must return -ENOENT ("header not found") only if the caller did not specifically request NEXTHDR_FRAGMENT. This allows nfables exthdr expression to match ipv6 fragments, e.g. via nft add rule ip6 filter input frag frag-off gt 0 Fixes: 9195bb8e381d ("ipv6: improve ipv6_find_hdr() to skip empty routing headers") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ata/pata_atp867x.c')
0 files changed, 0 insertions, 0 deletions