diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-08-29 22:22:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-09-02 15:41:29 +0300 |
commit | ef4a99a0164e3972abb421cbb1b09ea6c61414df (patch) | |
tree | 78525f1bd4d5faad4cc3f800736f94c178411faf /drivers | |
parent | a3c1e45156ad39f225cd7ddae0f81230a3b1e657 (diff) | |
download | linux-ef4a99a0164e3972abb421cbb1b09ea6c61414df.tar.xz |
igc: Unlock on error in igc_io_resume()
Call rtnl_unlock() on this error path, before returning.
Fixes: bc23aa949aeb ("igc: Add pcie error handler support")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/intel/igc/igc_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index dfd6c00b4205..0a095cdea4fb 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -7413,6 +7413,7 @@ static void igc_io_resume(struct pci_dev *pdev) rtnl_lock(); if (netif_running(netdev)) { if (igc_open(netdev)) { + rtnl_unlock(); netdev_err(netdev, "igc_open failed after reset\n"); return; } |