Skip to content

Commit

Permalink
[VLAN]: Fix memset length
Browse files Browse the repository at this point in the history
Fix sizeof(ETH_ALEN) Introduced by my rtnl_link patches.

Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
kaber authored and davem330 committed Jul 15, 2007
1 parent b863ceb commit a7ecfc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a7ecfc8

Please sign in to comment.