]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: do not call setup_timer() multiple times
authorEric Dumazet <edumazet@google.com>
Sat, 20 Jul 2013 03:07:16 +0000 (20:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Jul 2013 05:12:42 +0000 (22:12 -0700)
commitcfddccf711b795da756262704e93caa7652ad466
treec72272a0e485820f9d486012cd555f1a953bc977
parent1b10086c8451f5c41fe9651162dfe8ba0ba9dba0
bridge: do not call setup_timer() multiple times

commit 7be4f9fcd80b ("bridge: only expire the mdb entry when query is
received") added a nasty bug as an active timer can be reinitialized.

setup_timer() must be done once, no matter how many time mod_timer()
is called. br_multicast_new_group() is the right place to do this.

Reported-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Diagnosed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Tested-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Cc: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c