+3
−2
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
[ Upstream commit 1712b2fff8c682d145c7889d2290696647d82dab ]
I missed the fact that macvlan_broadcast() can be used both
in RX and TX.
skb_eth_hdr() makes only sense in TX paths, so we can not
use it blindly in macvlan_broadcast()
Fixes: 96cc4b69581d ("macvlan: do not assume mac_header is set in macvlan_broadcast()")
Signed-off-by:
Eric Dumazet <edumazet@google.com>
Reported-by:
Jurgen Van Ham <juvanham@gmail.com>
Tested-by:
Matteo Croce <mcroce@redhat.com>
Signed-off-by:
David S. Miller <davem@davemloft.net>
Signed-off-by:
Sasha Levin <sashal@kernel.org>