projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fda3f40
)
net/core: __hw_addr_create_ex does not initialize sync_cnt
author
Jay Vosburgh
<
[email protected]
>
Fri, 31 May 2013 11:57:26 +0000
(11:57 +0000)
committer
David S. Miller
<
[email protected]
>
Fri, 31 May 2013 23:56:56 +0000
(16:56 -0700)
The sync_cnt field is not being initialized, which can result
in arbitrary values in the field. Fixed by initializing it to zero.
Signed-off-by: Jay Vosburgh <
[email protected]
>
Reviewed-by: Vlad Yasevich <
[email protected]
>
Tested-by: Shawn Bohrer <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/dev_addr_lists.c
patch
|
blob
|
history
diff --git
a/net/core/dev_addr_lists.c
b/net/core/dev_addr_lists.c
index c013f38482a1ef6572a9de27a2aa39946971b40b..1f919d979db3c97faf63bf748e243724ede5462d 100644
(file)
--- a/
net/core/dev_addr_lists.c
+++ b/
net/core/dev_addr_lists.c
@@
-39,6
+39,7
@@
static int __hw_addr_create_ex(struct netdev_hw_addr_list *list,
ha->refcount = 1;
ha->global_use = global;
ha->synced = sync;
+ ha->sync_cnt = 0;
list_add_tail_rcu(&ha->list, &list->list);
list->count++;