lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 1 Mar 2012 09:42:42 +0100 From: Bas van den Berg <b.van.den.berg.nl@...il.com> To: davem@...emloft.net, netdev@...r.kernel.org, linux-kernel@...r.kernel.org Cc: Sriram <srk@...com>, Vinay Hegde <vinay.hegde@...com>, Cyril Chemparathy <cyril@...com>, Richard Cochran <richard.cochran@...cron.at>, Julia Lawall <Julia.Lawall@...6.fr>, Sascha Hauer <s.hauer@...gutronix.de>, Joe Perches <joe@...ches.com> Subject: [PATCH] davinci_emac: fixed setting MAC at init time Without this patch, the MAC number will show up as zero's until the interface is brought up for the first time. (eg. with ifconfig -a) Signed-off-by: Bas van den Berg <b.van.den.berg.nl@...il.com> --- drivers/net/ethernet/ti/davinci_emac.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index 4b2f545..11b169a 100644 --- a/drivers/net/ethernet/ti/davinci_emac.c +++ b/drivers/net/ethernet/ti/davinci_emac.c @@ -1904,6 +1904,7 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev) dev_warn(&pdev->dev, "using random MAC addr: %pM\n", priv->mac_addr); } + memcpy(ndev->dev_addr, priv->mac_addr, ndev->addr_len); ndev->netdev_ops = &emac_netdev_ops; SET_ETHTOOL_OPS(ndev, ðtool_ops); -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists