Skip to content

Commit

Permalink
[ATM]: fix bug in atm address list handling
Browse files Browse the repository at this point in the history
From: Martin Whitaker <atm@martin-whitaker.co.uk>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
  • Loading branch information
Martin Whitaker authored and davem330 committed Sep 28, 2005
1 parent 9301e32 commit 735631a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net/atm/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ void atm_reset_addr(struct atm_dev *dev)
struct atm_dev_addr *this, *p;

spin_lock_irqsave(&dev->lock, flags);
list_for_each_entry_safe(this, p, &dev->local, entry)
kfree(this);
list_for_each_entry_safe(this, p, &dev->local, entry) {
list_del(&this->entry);
kfree(this);
}
spin_unlock_irqrestore(&dev->lock, flags);
notify_sigd(dev);
}
Expand Down

0 comments on commit 735631a

Please sign in to comment.