From eff8c5b632dda741f5ce79f95cb8933080902df2 Mon Sep 17 00:00:00 2001 From: kevlo Date: Tue, 5 Dec 2023 13:43:39 +0000 Subject: [PATCH] timeout_del() the timer while stopping an interface so that no timeout is fired afterwards. ok claudio@ --- sys/dev/pci/if_vr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index babef2d86c5..79e752901ca 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vr.c,v 1.159 2022/03/11 18:00:50 mpi Exp $ */ +/* $OpenBSD: if_vr.c,v 1.160 2023/12/05 13:43:39 kevlo Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1603,6 +1603,7 @@ vr_stop(struct vr_softc *sc) ifp->if_timer = 0; timeout_del(&sc->sc_to); + timeout_del(&sc->sc_rxto); ifp->if_flags &= ~IFF_RUNNING; ifq_clr_oactive(&ifp->if_snd); -- 2.20.1