|
@@ -2385,7 +2385,7 @@ static int emac_dev_open(struct net_device *ndev)
|
|
struct emac_priv *priv = netdev_priv(ndev);
|
|
struct emac_priv *priv = netdev_priv(ndev);
|
|
|
|
|
|
netif_carrier_off(ndev);
|
|
netif_carrier_off(ndev);
|
|
- for (cnt = 0; cnt <= ETH_ALEN; cnt++)
|
|
|
|
|
|
+ for (cnt = 0; cnt < ETH_ALEN; cnt++)
|
|
ndev->dev_addr[cnt] = priv->mac_addr[cnt];
|
|
ndev->dev_addr[cnt] = priv->mac_addr[cnt];
|
|
|
|
|
|
/* Configuration items */
|
|
/* Configuration items */
|