diff options
-rw-r--r-- | net/core/dev_addr_lists.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev_addr_lists.c b/net/core/dev_addr_lists.c index c0548d268e1a..e3e6a3e2ca22 100644 --- a/net/core/dev_addr_lists.c +++ b/net/core/dev_addr_lists.c | |||
@@ -57,8 +57,8 @@ static int __hw_addr_add_ex(struct netdev_hw_addr_list *list, | |||
57 | return -EINVAL; | 57 | return -EINVAL; |
58 | 58 | ||
59 | list_for_each_entry(ha, &list->list, list) { | 59 | list_for_each_entry(ha, &list->list, list) { |
60 | if (!memcmp(ha->addr, addr, addr_len) && | 60 | if (ha->type == addr_type && |
61 | ha->type == addr_type) { | 61 | !memcmp(ha->addr, addr, addr_len)) { |
62 | if (global) { | 62 | if (global) { |
63 | /* check if addr is already used as global */ | 63 | /* check if addr is already used as global */ |
64 | if (ha->global_use) | 64 | if (ha->global_use) |