Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335756
b: refs/heads/master
c: a652208
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Nov 15, 2012
1 parent 9d6c43e commit fe573b5
Show file tree
Hide file tree
Showing 2 changed files with 3 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: ec34232575083fd0f43d3a101e8ebb041b203761
refs/heads/master: a652208e0b52c190e57f2a075ffb5e897fe31c3b
3 changes: 2 additions & 1 deletion trunk/net/core/dev_addr_lists.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ int dev_addr_del(struct net_device *dev, const unsigned char *addr,
*/
ha = list_first_entry(&dev->dev_addrs.list,
struct netdev_hw_addr, list);
if (ha->addr == dev->dev_addr && ha->refcount == 1)
if (!memcmp(ha->addr, addr, dev->addr_len) &&
ha->type == addr_type && ha->refcount == 1)
return -ENOENT;

err = __hw_addr_del(&dev->dev_addrs, addr, dev->addr_len,
Expand Down

0 comments on commit fe573b5

Please sign in to comment.