Searched hist:f30e25a9d1b25ac8d40071c4dc2679ad0fcdc55a (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/usb/ |
H A D | pegasus.c | diff f30e25a9d1b25ac8d40071c4dc2679ad0fcdc55a Fri Oct 02 02:56:04 CDT 2020 Petko Manolov <petko.manolov@konsulko.com> net: usb: pegasus: Proper error handing when setting pegasus' MAC address
v2:
If reading the MAC address from eeprom fail don't throw an error, use randomly generated MAC instead. Either way the adapter will soldier on and the return type of set_ethernet_addr() can be reverted to void.
v1:
Fix a bug in set_ethernet_addr() which does not take into account possible errors (or partial reads) returned by its helpers. This can potentially lead to writing random data into device's MAC address registers.
Signed-off-by: Petko Manolov <petko.manolov@konsulko.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|