]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/bridge/br_stp_bpdu.c
Merge drm/drm-next into drm-intel-next-queued
[linux.git] / net / bridge / br_stp_bpdu.c
index 68a6922b41411dc9585df677c2de194fed438d0d..7796dd9d42d7a67d1867c0b1f96884fbd3b06812 100644 (file)
@@ -143,7 +143,6 @@ void br_send_tcn_bpdu(struct net_bridge_port *p)
 void br_stp_rcv(const struct stp_proto *proto, struct sk_buff *skb,
                struct net_device *dev)
 {
-       const unsigned char *dest = eth_hdr(skb)->h_dest;
        struct net_bridge_port *p;
        struct net_bridge *br;
        const unsigned char *buf;
@@ -172,7 +171,7 @@ void br_stp_rcv(const struct stp_proto *proto, struct sk_buff *skb,
        if (p->state == BR_STATE_DISABLED)
                goto out;
 
-       if (!ether_addr_equal(dest, br->group_addr))
+       if (!ether_addr_equal(eth_hdr(skb)->h_dest, br->group_addr))
                goto out;
 
        if (p->flags & BR_BPDU_GUARD) {