commit | ad8192767c9f9cf97da57b9ffcea70fb100febef | [log] [tgz] |
---|---|---|
author | Mahesh Bandewar <maheshb@google.com> | Mon Mar 09 15:56:56 2020 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Mar 09 17:59:25 2020 -0700 |
tree | 709ab896144397055fbbf3c5631548305b04a161 | |
parent | 4b1bd9db078f7d5332c8601a2f5bd43cf0458fd4 [diff] |
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>