diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 201ef1712ef5cfc9366b10519c142829a975d1af..64dfaa303dcc943f34286604b080cd657895cbc7 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -823,7 +823,7 @@ int macvlan_common_newlink(struct net *src_net, struct net_device *dev, if (port->count) return -EINVAL; port->passthru = true; - memcpy(dev->dev_addr, lowerdev->dev_addr, ETH_ALEN); + eth_hw_addr_inherit(dev, lowerdev); } err = netdev_upper_dev_link(lowerdev, dev);