Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61205
b: refs/heads/master
c: 1297262
h: refs/heads/master
i:
  61203: 25e00b8
v: v3
  • Loading branch information
Denis Cheng authored and David S. Miller committed Jul 18, 2007
1 parent 0c787a3 commit ef38c6e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 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: 26cc2522cb6ebf0c1c736485e102e9654cde1145
refs/heads/master: 12972621c8a18465e3d20cc8e3006a8b7f7788df
28 changes: 14 additions & 14 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2715,20 +2715,6 @@ int __dev_addr_add(struct dev_addr_list **list, int *count,
return 0;
}

static void __dev_addr_discard(struct dev_addr_list **list)
{
struct dev_addr_list *tmp;

while (*list != NULL) {
tmp = *list;
*list = tmp->next;
if (tmp->da_users > tmp->da_gusers)
printk("__dev_addr_discard: address leakage! "
"da_users=%d\n", tmp->da_users);
kfree(tmp);
}
}

/**
* dev_unicast_delete - Release secondary unicast address.
* @dev: device
Expand Down Expand Up @@ -2777,6 +2763,20 @@ int dev_unicast_add(struct net_device *dev, void *addr, int alen)
}
EXPORT_SYMBOL(dev_unicast_add);

static void __dev_addr_discard(struct dev_addr_list **list)
{
struct dev_addr_list *tmp;

while (*list != NULL) {
tmp = *list;
*list = tmp->next;
if (tmp->da_users > tmp->da_gusers)
printk("__dev_addr_discard: address leakage! "
"da_users=%d\n", tmp->da_users);
kfree(tmp);
}
}

static void dev_addr_discard(struct net_device *dev)
{
netif_tx_lock_bh(dev);
Expand Down

0 comments on commit ef38c6e

Please sign in to comment.