Message ID | 64a982d3-a2f5-4ef7-ad75-61f6bb1fae24@stanley.mountain (mailing list archive) |
---|---|
State | Accepted |
Commit | ef4a99a0164e3972abb421cbb1b09ea6c61414df |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] igc: Unlock on error in igc_io_resume() | expand |
On 29.08.24 21:22, Dan Carpenter wrote: > 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> > --- > drivers/net/ethernet/intel/igc/igc_main.c | 1 + > 1 file changed, 1 insertion(+) > > 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; > } Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Hello: This patch was applied to netdev/net.git (main) by David S. Miller <davem@davemloft.net>: On Thu, 29 Aug 2024 22:22:45 +0300 you wrote: > 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> > --- > drivers/net/ethernet/intel/igc/igc_main.c | 1 + > 1 file changed, 1 insertion(+) Here is the summary with links: - [net] igc: Unlock on error in igc_io_resume() https://git.kernel.org/netdev/net/c/ef4a99a0164e You are awesome, thank you!
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; }
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> --- drivers/net/ethernet/intel/igc/igc_main.c | 1 + 1 file changed, 1 insertion(+)