mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
[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>
This commit is contained in:
parent
b863ceb7dd
commit
a7ecfc8665
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user