summaryrefslogtreecommitdiff
path: root/net/ieee802154/nl_policy.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2015-11-12 01:25:40 +0300
committerSasha Levin <sasha.levin@oracle.com>2015-12-14 20:19:21 +0300
commit22fb967dc3ca91edb8298373d64beaec4a572373 (patch)
tree08174b3dd93b9ad146c200fa03daed88d6fd8296 /net/ieee802154/nl_policy.c
parente5d4fd3e2e4c0b373473fca676e40a8c4bee8b07 (diff)
downloadlinux-22fb967dc3ca91edb8298373d64beaec4a572373.tar.xz
packet: do skb_probe_transport_header when we actually have data
[ Upstream commit efdfa2f7848f64517008136fb41f53c4a1faf93a ] In tpacket_fill_skb() commit c1aad275b029 ("packet: set transport header before doing xmit") and later on 40893fd0fd4e ("net: switch to use skb_probe_transport_header()") was probing for a transport header on the skb from a ring buffer slot, but at a time, where the skb has _not even_ been filled with data yet. So that call into the flow dissector is pretty useless. Lets do it after we've set up the skb frags. Fixes: c1aad275b029 ("packet: set transport header before doing xmit") Reported-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'net/ieee802154/nl_policy.c')
0 files changed, 0 insertions, 0 deletions