From: Christophe JAILLET Date: Wed, 16 Jun 2021 05:53:02 +0000 (+0200) Subject: iavf: Fix an error handling path in 'iavf_probe()' X-Git-Tag: accepted/tizen/unified/20230118.172025~6815^2~62^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af30cbd2f4d6d66a9b6094e0aa32420bc8b20e08;p=platform%2Fkernel%2Flinux-rpi.git 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: 5eae00c57f5e ("i40evf: main driver core") Signed-off-by: Christophe JAILLET Signed-off-by: Tony Nguyen --- diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index e612c24..44bafed 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -3798,6 +3798,7 @@ static int iavf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) err_ioremap: free_netdev(netdev); err_alloc_etherdev: + pci_disable_pcie_error_reporting(pdev); pci_release_regions(pdev); err_pci_reg: err_dma: