]> git.baikalelectronics.ru Git - 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)
commitf908131dfacbb7fbcdbff42b3015f992bea15069
tree709ab896144397055fbbf3c5631548305b04a161
parent65e64a9203dfb10c2ecf35e32307f9046276068a
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: a346ddd1a0fb (“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