[VLAN]: Fix memset length
authorPatrick McHardy <kaber@trash.net>
Sun, 15 Jul 2007 01:56:30 +0000 (18:56 -0700)
committerDavid 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

index 39bdcc25c15053b053c7fe5d595569cfa1e7e9a1..cda936b77d222b2bb68cc4b79f8ba1e468cd9de3 100644 (file)
@@ -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)