Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265723
b: refs/heads/master
c: aec9db3
h: refs/heads/master
i:
  265721: a9f84c0
  265719: 083fcd7
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Sep 15, 2011
1 parent 0d75294 commit 3bb2604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90d0963d17c11188d1d986a235b8aa775c2fb8f2
refs/heads/master: aec9db355ce2b930358ade5a71cc00ac258e1b3f
4 changes: 3 additions & 1 deletion trunk/net/ieee802154/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,15 +813,17 @@ static void lowpan_dellink(struct net_device *dev, struct list_head *head)
struct lowpan_dev_info *lowpan_dev = lowpan_dev_info(dev);
struct net_device *real_dev = lowpan_dev->real_dev;
struct lowpan_dev_record *entry;
struct lowpan_dev_record *tmp;

ASSERT_RTNL();

mutex_lock(&lowpan_dev_info(dev)->dev_list_mtx);
list_for_each_entry(entry, &lowpan_devices, list)
list_for_each_entry_safe(entry, tmp, &lowpan_devices, list) {
if (entry->ldev == dev) {
list_del(&entry->list);
kfree(entry);
}
}
mutex_unlock(&lowpan_dev_info(dev)->dev_list_mtx);

mutex_destroy(&lowpan_dev_info(dev)->dev_list_mtx);
Expand Down

0 comments on commit 3bb2604

Please sign in to comment.