]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:17:39 +0000 (07:17 +0100)
commitb8b2fe4268a0dceb396175c8dca5a6b8a3bbf8ee
tree8d3bb4a808113dddb30f17bf8025a43dcbe50827
parent133ddd505ad741f28a59a9b151d8a523e1132f3d
ipvlan: don't deref eth hdr before checking it's set

[ Upstream commit f908131dfacbb7fbcdbff42b3015f992bea15069 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ipvlan/ipvlan_core.c