]> 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)
commiteab6d4b4c8f22e8722973a8fc910f44bd9fc0250
tree3de07c6d11cdcd5963c408c930e11015e82302a8
parent5756dbedc84bdbdaed74aaeef9004cd2cebb03ba
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: cd6a22e28c15 ("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