diff options
author | Petko Manolov <[email protected]> | 2020-10-02 10:56:04 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-10-02 15:18:42 -0700 |
commit | f30e25a9d1b25ac8d40071c4dc2679ad0fcdc55a (patch) | |
tree | 9dc02d4db5fdd854b387b7977a883969d52e7633 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | a93bdcb94a0b3ca72046151412c2389dca681d2a (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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions