diff options
author | Ziyang Xuan <william.xuanziyang@huawei.com> | 2022-11-11 10:09:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-14 13:55:43 +0300 |
commit | 848ffce2f0c93f3481052340a919123a21f808b6 (patch) | |
tree | 7cf0213b49b6c2672068a221646dfcaec7a524ce /drivers/net/hyperv | |
parent | e4041be97b15302ebfffda8bbd45f3b2d096048f (diff) | |
download | linux-848ffce2f0c93f3481052340a919123a21f808b6.tar.xz |
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 'drivers/net/hyperv')
0 files changed, 0 insertions, 0 deletions