Commit 2bec008ca9fd009aa503b75344d1c22da9256141

Authored by Fabio Checconi
Committed by David S. Miller
1 parent 7582a33557

bridge: use time_before() in br_fdb_cleanup()

In br_fdb_cleanup() next_timer and this_timer are in jiffies, so they
should be compared using the time_after() macro.

Signed-off-by: Fabio Checconi <fabio@gandalf.sssup.it>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -136,7 +136,7 @@
136 136 this_timer = f->ageing_timer + delay;
137 137 if (time_before_eq(this_timer, jiffies))
138 138 fdb_delete(f);
139   - else if (this_timer < next_timer)
  139 + else if (time_before(this_timer, next_timer))
140 140 next_timer = this_timer;
141 141 }
142 142 }