]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97c6b5f2abc3a362c01e7e307e96340edc5273a3
tree3de07c6d11cdcd5963c408c930e11015e82302a8
parent14c308bab04fa7eb9f18bdcedba8165adb143bde
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: 51c13ad8293f ("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