]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/bridge/br_mdb.c
bridge: fix compile error when compiling without IPv6 support
[karo-tx-linux.git] / net / bridge / br_mdb.c
index b7b1914dfa252a3731a26e2bcf2be3afc5171661..5df05269d17a6f9b478aa6d90d5c322f0708e0c4 100644 (file)
@@ -418,13 +418,13 @@ static int __br_mdb_del(struct net_bridge *br, struct br_mdb_entry *entry)
 
        ip.proto = entry->addr.proto;
        if (ip.proto == htons(ETH_P_IP)) {
-               if (timer_pending(&br->ip4_querier.timer))
+               if (timer_pending(&br->ip4_other_query.timer))
                        return -EBUSY;
 
                ip.u.ip4 = entry->addr.u.ip4;
 #if IS_ENABLED(CONFIG_IPV6)
        } else {
-               if (timer_pending(&br->ip6_querier.timer))
+               if (timer_pending(&br->ip6_other_query.timer))
                        return -EBUSY;
 
                ip.u.ip6 = entry->addr.u.ip6;