lkml.org 
[lkml]   [2021]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 40/82] iavf: Fix an error handling path in iavf_probe()
    Date
    From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>

    [ Upstream commit af30cbd2f4d6d66a9b6094e0aa32420bc8b20e08 ]

    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 <christophe.jaillet@wanadoo.fr>
    Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/net/ethernet/intel/i40evf/i40evf_main.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
    index 1b5d204c57c1..ad2dd5b747b2 100644
    --- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
    +++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
    @@ -2924,6 +2924,7 @@ static int i40evf_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:
    --
    2.30.2


    \
     
     \ /
      Last update: 2021-07-26 17:51    [W:5.800 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site