aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-07-14 21:56:30 -0400
committerDavid S. Miller <davem@davemloft.net>2007-07-14 21:56:30 -0400
commita7ecfc866578e665e20004a2f5fff5b73e8be3bc (patch)
tree9967d6cc6eb1e098251f4e230266caa69616b4f1 /net
parentb863ceb7ddcea8c55fcf1d7b2ac591d50aa7ed53 (diff)
[VLAN]: Fix memset length
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>
Diffstat (limited to 'net')
-rw-r--r--net/8021q/vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index 39bdcc25c150..cda936b77d22 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -377,7 +377,7 @@ void vlan_setup(struct net_device *new_dev)
377 new_dev->destructor = free_netdev; 377 new_dev->destructor = free_netdev;
378 new_dev->do_ioctl = vlan_dev_ioctl; 378 new_dev->do_ioctl = vlan_dev_ioctl;
379 379
380 memset(new_dev->broadcast, 0, sizeof(ETH_ALEN)); 380 memset(new_dev->broadcast, 0, ETH_ALEN);
381} 381}
382 382
383static void vlan_transfer_operstate(const struct net_device *dev, struct net_device *vlandev) 383static void vlan_transfer_operstate(const struct net_device *dev, struct net_device *vlandev)