]> git.baikalelectronics.ru Git - kernel.git/commit
net: aquantia: Fix error return code in aq_pci_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Jan 2018 02:10:46 +0000 (02:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jan 2018 15:59:29 +0000 (10:59 -0500)
commit17d983f854ea5488cd3cf648d04ca073fbf3e444
treed812cf5ef578ca84bea0dbea7258e24c4379e89e
parent24fa58102a2c7f48b2f274eef42f5f0ca805cc98
net: aquantia: Fix error return code in aq_pci_probe()

Fix to return error code -ENOMEM from the aq_ndev_alloc() error
handling case instead of 0, as done elsewhere in this function.

Fixes: dc42839e9ad3 ("net: aquantia: Cleanup pci functions module")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c