Commit 
406f42fa0d3c ("net-next: When a bond have a massive amount
of VLANs...") introduced a rbtree for faster Ethernet address look
up. To maintain netdev->dev_addr in this tree we need to make all
the writes to it got through appropriate helpers.
macaddr[] is a module param, and int, so copy the address into
an array of u8 on the stack, then call eth_hw_addr_set().
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
        int i;
        int err;
        int tmp;
+       u8 addr[ETH_ALEN];
        unsigned long timeout;
 
        dev = alloc_etherdev(sizeof(struct greth_private));
                        break;
        }
        if (i == 6) {
-               u8 addr[ETH_ALEN];
-
                err = of_get_mac_address(ofdev->dev.of_node, addr);
                if (!err) {
                        for (i = 0; i < 6; i++)
        }
 
        for (i = 0; i < 6; i++)
-               dev->dev_addr[i] = macaddr[i];
+               addr[i] = macaddr[i];
+       eth_hw_addr_set(dev, addr);
 
        macaddr[5]++;