Netdev List
 help / color / mirror / Atom feed
* [PATCH v2] net: fix wrong length of mac address
@ 2013-01-18  7:51 Amos Kong
  2013-01-18  9:00 ` Waskiewicz Jr, Peter P
       [not found] ` <20130118083031.GA2303@ppwaskie-mobl2.amr.corp.intel.com>
  0 siblings, 2 replies; 6+ messages in thread
From: Amos Kong @ 2013-01-18  7:51 UTC (permalink / raw)
  To: davem, kys, haiyangz; +Cc: netdev, Amos Kong, devel

Typo, it should be ETH_ALEN.

Signed-off-by: Amos Kong <kongjianjun@gmail.com>
---
v2: update commitlog, fix cc list
---
 drivers/net/hyperv/netvsc_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index f825a62..8264f0e 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -349,7 +349,7 @@ static int netvsc_set_mac_addr(struct net_device *ndev, void *p)
 	struct net_device_context *ndevctx = netdev_priv(ndev);
 	struct hv_device *hdev =  ndevctx->device_ctx;
 	struct sockaddr *addr = p;
-	char save_adr[14];
+	char save_adr[ETH_ALEN];
 	unsigned char save_aatype;
 	int err;
 
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-19 16:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-18  7:51 [PATCH v2] net: fix wrong length of mac address Amos Kong
2013-01-18  9:00 ` Waskiewicz Jr, Peter P
     [not found] ` <20130118083031.GA2303@ppwaskie-mobl2.amr.corp.intel.com>
2013-01-18 19:36   ` David Miller
2013-01-19  2:52   ` [PATCH v3] net/hyperv: " Amos Kong
2013-01-19 15:07     ` Haiyang Zhang
2013-01-19 16:02       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox