提交 735631a9 编写于 作者: M Martin Whitaker 提交者: David S. Miller

[ATM]: fix bug in atm address list handling

From: Martin Whitaker <atm@martin-whitaker.co.uk>
Signed-off-by: NChas Williams <chas@cmf.nrl.navy.mil>
上级 9301e320
...@@ -50,8 +50,10 @@ void atm_reset_addr(struct atm_dev *dev) ...@@ -50,8 +50,10 @@ void atm_reset_addr(struct atm_dev *dev)
struct atm_dev_addr *this, *p; struct atm_dev_addr *this, *p;
spin_lock_irqsave(&dev->lock, flags); spin_lock_irqsave(&dev->lock, flags);
list_for_each_entry_safe(this, p, &dev->local, entry) list_for_each_entry_safe(this, p, &dev->local, entry) {
list_del(&this->entry);
kfree(this); kfree(this);
}
spin_unlock_irqrestore(&dev->lock, flags); spin_unlock_irqrestore(&dev->lock, flags);
notify_sigd(dev); notify_sigd(dev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册