Commit 8a7d12d
net: usb: usbnet: fix name regression
The fix for MAC addresses broke detection of the naming convention
because it gave network devices no random MAC before bind()
was called. This means that the check for the local assignment bit
was always negative as the address was zeroed from allocation,
instead of from overwriting the MAC with a unique hardware address.
The correct check for whether bind() has altered the MAC is
done with is_zero_ether_addr
Signed-off-by: Oliver Neukum <[email protected]>
Reported-by: Greg Thelen <[email protected]>
Diagnosed-by: John Sperbeck <[email protected]>
Fixes: bab8eb0 ("usbnet: modern method to get random MAC")
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>1 parent f7b4cf0 commit 8a7d12d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1767 | 1767 | | |
1768 | 1768 | | |
1769 | 1769 | | |
1770 | | - | |
| 1770 | + | |
| 1771 | + | |
1771 | 1772 | | |
1772 | 1773 | | |
1773 | 1774 | | |
| |||
0 commit comments