projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9301e32
)
[ATM]: fix bug in atm address list handling
author
Martin Whitaker
<atm@martin-whitaker.co.uk>
Wed, 28 Sep 2005 23:35:22 +0000
(16:35 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 28 Sep 2005 23:35:22 +0000
(16:35 -0700)
From: Martin Whitaker <atm@martin-whitaker.co.uk>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
net/atm/addr.c
patch
|
blob
|
blame
|
history
diff --git
a/net/atm/addr.c
b/net/atm/addr.c
index 1c8867f7f54a920cdc996b14ba1eebdd8b42dfac..a30d0bf480638de8a44c18b221b007d65085047a 100644
(file)
--- a/
net/atm/addr.c
+++ b/
net/atm/addr.c
@@
-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);
}