bridge: stp: ensure mac header is set
authorFlorian Westphal <fw@strlen.de>
Mon, 3 Jan 2011 04:16:28 +0000 (04:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jan 2011 20:09:33 +0000 (12:09 -0800)
commite6f26129ebbb0071016e2526036f42036ccf30e1
treeba75f3014c9251ceee17c69bd6602603337c6b2e
parent9d89081d698132b5f964aea88112f76492563ee9
bridge: stp: ensure mac header is set

commit bf9ae5386bca8836c16e69ab8fdbe46767d7452a
(llc: use dev_hard_header) removed the
skb_reset_mac_header call from llc_mac_hdr_init.

This seems fine itself, but br_send_bpdu() invokes ebtables LOCAL_OUT.

We oops in ebt_basic_match() because it assumes eth_hdr(skb) returns
a meaningful result.

Cc: acme@ghostprotocols.net
References: https://bugzilla.kernel.org/show_bug.cgi?id=24532
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_stp_bpdu.c