Skip to content

Commit

Permalink
ionic: use timer_shutdown_sync
Browse files Browse the repository at this point in the history
When stopping the watchdog timer at remove time we should
be using the new timer_shutdown_sync to assure the timer
doesn't ever get rearmed.

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Shannon Nelson authored and David S. Miller committed Dec 13, 2023
1 parent 219e183 commit b0dbe35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ static void ionic_remove(struct pci_dev *pdev)
{
struct ionic *ionic = pci_get_drvdata(pdev);

del_timer_sync(&ionic->watchdog_timer);
timer_shutdown_sync(&ionic->watchdog_timer);

if (ionic->lif) {
/* prevent adminq cmds if already known as down */
Expand Down

0 comments on commit b0dbe35

Please sign in to comment.