[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250414091856.18765-1-sedara@marvell.com>
Date: Mon, 14 Apr 2025 02:18:55 -0700
From: Sathesh B Edara <sedara@...vell.com>
To: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <hgani@...vell.com>, <vimleshk@...vell.com>,
Veerasenareddy Burru
<vburru@...vell.com>,
Sathesh Edara <sedara@...vell.com>,
Shinas Rasheed
<srasheed@...vell.com>,
Satananda Burla <sburla@...vell.com>,
Andrew Lunn
<andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
"Eric
Dumazet" <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
<pabeni@...hat.com>
Subject: [PATCH net v2] octeon_ep_vf: Resolve netdevice usage count issue
Address the netdevice usage count problem in the following scenarios:
- When the interface is down
- During transmit queue timeouts
Fixes: cb7dd712189f ("octeon_ep_vf: Add driver framework and device initialization")
Signed-off-by: Sathesh B Edara <sedara@...vell.com>
---
Changes:
V2:
- Removed redundant call
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c b/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
index 18c922dd5fc6..5d033bc66bdf 100644
--- a/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
+++ b/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
@@ -819,7 +819,6 @@ static void octep_vf_tx_timeout_task(struct work_struct *work)
octep_vf_open(netdev);
}
rtnl_unlock();
- netdev_put(netdev, NULL);
}
/**
@@ -834,7 +833,6 @@ static void octep_vf_tx_timeout(struct net_device *netdev, unsigned int txqueue)
{
struct octep_vf_device *oct = netdev_priv(netdev);
- netdev_hold(netdev, NULL, GFP_ATOMIC);
schedule_work(&oct->tx_timeout_task);
}
--
2.36.0
Powered by blists - more mailing lists