]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ipvlan: don't deref eth hdr before checking it's set
authorMahesh Bandewar <maheshb@google.com>
Mon, 9 Mar 2020 22:56:56 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 00:59:25 +0000 (17:59 -0700)
commitad8192767c9f9cf97da57b9ffcea70fb100febef
tree709ab896144397055fbbf3c5631548305b04a161
parent4b1bd9db078f7d5332c8601a2f5bd43cf0458fd4
ipvlan: don't deref eth hdr before checking it's set

IPvlan in L3 mode discards outbound multicast packets but performs
the check before ensuring the ether-header is set or not. This is
an error that Eric found through code browsing.

Fixes: 2ad7bf363841 (“ipvlan: Initial check-in of the IPVLAN driver.”)
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_core.c