mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 11:33:58 -04:00
ionic: use timer_shutdown_sync
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>
This commit is contained in:
committed by
David S. Miller
parent
219e183272
commit
b0dbe358fb
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user