projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.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
|
blame
|
history
diff --git
a/net/8021q/vlan.c
b/net/8021q/vlan.c
index 39bdcc25c15053b053c7fe5d595569cfa1e7e9a1..cda936b77d222b2bb68cc4b79f8ba1e468cd9de3 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)