Skip to content

Commit

Permalink
igc: Unlock on error in igc_io_resume()
Browse files Browse the repository at this point in the history
Call rtnl_unlock() on this error path, before returning.

Fixes: bc23aa9 ("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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Sep 2, 2024
1 parent a3c1e45 commit ef4a99a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/intel/igc/igc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ef4a99a

Please sign in to comment.