net: txgbe: Fix an error handling path in txgbe_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 31 Jul 2022 16:34:15 +0000 (18:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Aug 2022 19:27:12 +0000 (12:27 -0700)
commit2e8f205d910eb1fc59faf24582f3faf774000360
tree3de07c6d11cdcd5963c408c930e11015e82302a8
parent062cf5ebc2e8ca8afb9908072493dea314f62862
net: txgbe: Fix an error handling path in txgbe_probe()

A pci_enable_pcie_error_reporting() should be balanced by a corresponding
pci_disable_pcie_error_reporting() call in the error handling path, as
already done in the remove function.

Fixes: 3ce7547e5b71 ("net: txgbe: Add build support for txgbe")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://lore.kernel.org/r/082003d00be1f05578c9c6434272ceb314609b8e.1659285240.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c