]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Fix an error handling path in 'iavf_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 16 Jun 2021 05:53:02 +0000 (07:53 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 1 Jul 2021 17:59:21 +0000 (10:59 -0700)
commitb17900fad4d37659fb8767714a2b509674000ce3
tree82e9d1f08d6e149ca4263c4f4d8d2470b643fb1a
parentc6c9dd6651328d21a058a61879d19cd36900f0bb
iavf: Fix an error handling path in 'iavf_probe()'

If an error occurs after a 'pci_enable_pcie_error_reporting()' call, it
must be undone by a corresponding 'pci_disable_pcie_error_reporting()'
call, as already done in the remove function.

Fixes: 16d6e2c362ef ("i40evf: main driver core")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c