projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b863ceb
)
[VLAN]: Fix memset length
author
Patrick McHardy
<kaber@trash.net>
Sun, 15 Jul 2007 01:56:30 +0000
(18:56 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 15 Jul 2007 01:56:30 +0000
(18:56 -0700)
Fix sizeof(ETH_ALEN) Introduced by my rtnl_link patches.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c
patch
|
blob
|
history
diff --git
a/net/8021q/vlan.c
b/net/8021q/vlan.c
index
39bdcc2
..
cda936b
100644
(file)
--- a/
net/8021q/vlan.c
+++ b/
net/8021q/vlan.c
@@
-377,7
+377,7
@@
void vlan_setup(struct net_device *new_dev)
new_dev->destructor = free_netdev;
new_dev->do_ioctl = vlan_dev_ioctl;
- memset(new_dev->broadcast, 0,
sizeof(ETH_ALEN)
);
+ memset(new_dev->broadcast, 0,
ETH_ALEN
);
}
static void vlan_transfer_operstate(const struct net_device *dev, struct net_device *vlandev)