aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2023-04-21 01:55:56 +0300
committerDavid S. Miller <[email protected]>2023-04-23 14:16:44 +0100
commiteabb1494c9f20362ae53a9991481a1523be4f4b7 (patch)
tree309bbb2bc02550d0d94b8301d798ddc802c4250d /lib/test_fortify/write_overflow-strncpy-src.c
parente2fdfd7119128b49d81972a75e74169802aa8ae0 (diff)
net: dsa: tag_ocelot: do not rely on skb_mac_header() for VLAN xmit
skb_mac_header() will no longer be available in the TX path when reverting commit 6d1ccff62780 ("net: reset mac header in dev_start_xmit()"). As preparation for that, let's use skb_vlan_eth_hdr() to get to the VLAN header instead, which assumes it's located at skb->data (assumption which holds true here). Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions