diff options
author | 2022-11-11 15:09:35 +0800 | |
---|---|---|
committer | 2022-11-14 10:55:43 +0000 | |
commit | 848ffce2f0c93f3481052340a919123a21f808b6 (patch) | |
tree | 7cf0213b49b6c2672068a221646dfcaec7a524ce /tools/perf/scripts/python/export-to-postgresql.py | |
parent | octeon_ep: fix potential memory leak in octep_device_setup() (diff) | |
download | wireguard-linux-848ffce2f0c93f3481052340a919123a21f808b6.tar.xz wireguard-linux-848ffce2f0c93f3481052340a919123a21f808b6.zip |
octeon_ep: ensure get mac address successfully before eth_hw_addr_set()
octep_get_mac_addr() can fail because send mbox message failed. If this
happens, octep_dev->mac_addr will be zero. It should not continue to
initialize. Add exception handling for octep_get_mac_addr() to fix it.
Fixes: 862cd659a6fb ("octeon_ep: Add driver framework and device initialization")
Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions