e1000e: Fix an error handling path in 'e1000_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 16 Jun 2021 05:05:53 +0000 (07:05 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 1 Jul 2021 17:59:21 +0000 (10:59 -0700)
commit4589075608420bc49fcef6e98279324bf2bb91ae
tree5341be2841e562e580ce1c02b6e4e3ec05c36d84
parente85e14d68f517ef12a5fb8123fff65526b35b6cd
e1000e: Fix an error handling path in 'e1000_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: 111b9dc5c981 ("e1000e: add aer support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c