Patchwork [net-next-2.6,2/6] be2net: initialize netdev->perm_addr

login
register
mail settings
Submitter Ajit Khaparde
Date Nov. 30, 2009, 3:55 a.m.
Message ID <20091130035530.GA15468@serverengines.com>
Download mbox | patch
Permalink /patch/39776/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ajit Khaparde - Nov. 30, 2009, 3:55 a.m.
patch to initialize netdev->perm_addr

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
---
 drivers/net/benet/be_main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
David Miller - Dec. 2, 2009, 9:11 a.m.
From: Ajit Khaparde <ajitk@serverengines.com>
Date: Mon, 30 Nov 2009 09:25:39 +0530

> patch to initialize netdev->perm_addr
> 
> Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 2c84c92..e24f498 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -2147,6 +2147,7 @@  static int be_get_config(struct be_adapter *adapter)
 	if (status)
 		return status;
 	memcpy(adapter->netdev->dev_addr, mac, ETH_ALEN);
+	memcpy(adapter->netdev->perm_addr, mac, ETH_ALEN);
 
 	return 0;
 }