From: Patrick McHardy Date: Sun, 15 Jul 2007 01:56:30 +0000 (-0700) Subject: [VLAN]: Fix memset length X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7ecfc866578e665e20004a2f5fff5b73e8be3bc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [VLAN]: Fix memset length Fix sizeof(ETH_ALEN) Introduced by my rtnl_link patches. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- 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) 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)