summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPetko Manolov <petko.manolov@konsulko.com>2020-10-02 10:56:04 +0300
committerDavid S. Miller <davem@davemloft.net>2020-10-02 15:18:42 -0700
commitf30e25a9d1b25ac8d40071c4dc2679ad0fcdc55a (patch)
tree9dc02d4db5fdd854b387b7977a883969d52e7633 /include/linux
parenta93bdcb94a0b3ca72046151412c2389dca681d2a (diff)
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions