Re: [PATCH] dm9601: handle corrupt mac address

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wu Fengguang
Date: Tuesday, January 6, 2009 - 1:29 am

Hi Peter,

On Tue, Jan 06, 2009 at 09:04:58AM +0100, Peter Korsgaard wrote:

I confirmed based on both code review and tests.
The logic goes like this in usbnet.c:

  80 // randomly generated ethernet address
  81 static u8       node_id [ETH_ALEN];
...
1118 int
1119 usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
1120 {
...
1168         dev->net = net;
1169         strcpy (net->name, "usb%d");
1170         memcpy (net->dev_addr, node_id, sizeof node_id);
...
1192         // allow device-specific bind/init procedures
1193         // NOTE net->name still not usable ...
1194         if (info->bind) {
1195                 status = info->bind (dev, udev);



I'll do that in another patch. Since I'd like to add one more similar
warning to dm9601_set_mac_address(). That warning helped me identify
this bug.


Thanks,
Fengguang
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] dm9601: handle corrupt mac address, Wu Fengguang, (Mon Jan 5, 11:14 pm)
Re: [PATCH] dm9601: handle corrupt mac address, Peter Korsgaard, (Tue Jan 6, 1:04 am)
Re: [PATCH] dm9601: handle corrupt mac address, Wu Fengguang, (Tue Jan 6, 1:29 am)
Re: [PATCH] dm9601: handle corrupt mac address, Peter Korsgaard, (Tue Jan 6, 1:42 am)
Re: [PATCH] dm9601: handle corrupt mac address, Wu Fengguang, (Tue Jan 6, 2:50 am)
Re: [PATCH] dm9601: handle corrupt mac address, David Brownell, (Tue Jan 6, 3:28 am)
Re: [PATCH] dm9601: handle corrupt mac address, Peter Korsgaard, (Tue Jan 6, 3:56 am)
Re: [PATCH] dm9601: handle corrupt mac address, David Miller, (Tue Jan 6, 11:55 am)