summaryrefslogtreecommitdiff
path: root/include
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-03 01:18:42 +0300
commitf30e25a9d1b25ac8d40071c4dc2679ad0fcdc55a (patch)
tree9dc02d4db5fdd854b387b7977a883969d52e7633 /include
parenta93bdcb94a0b3ca72046151412c2389dca681d2a (diff)
downloadlinux-f30e25a9d1b25ac8d40071c4dc2679ad0fcdc55a.tar.xz
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')
0 files changed, 0 insertions, 0 deletions