Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376673
b: refs/heads/master
c: 29ca2f8
h: refs/heads/master
i:
  376671: 6ad4c4c
v: v3
  • Loading branch information
Jay Vosburgh authored and David S. Miller committed May 31, 2013
1 parent 617fffb commit 8c2613c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 60ba834c2fb65f2fafee47e03c258fac579d0591
refs/heads/master: 29ca2f8fcc721517b83d0a560c47cee2dde827a6
11 changes: 7 additions & 4 deletions trunk/net/core/dev_addr_lists.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static int __hw_addr_add_ex(struct netdev_hw_addr_list *list,
}
if (sync) {
if (ha->synced)
return 0;
return -EEXIST;
else
ha->synced = true;
}
Expand Down Expand Up @@ -140,10 +140,13 @@ static int __hw_addr_sync_one(struct netdev_hw_addr_list *to_list,

err = __hw_addr_add_ex(to_list, ha->addr, addr_len, ha->type,
false, true);
if (err)
if (err && err != -EEXIST)
return err;
ha->sync_cnt++;
ha->refcount++;

if (!err) {
ha->sync_cnt++;
ha->refcount++;
}

return 0;
}
Expand Down

0 comments on commit 8c2613c

Please sign in to comment.