From: kevlo Date: Tue, 5 Dec 2023 13:43:39 +0000 (+0000) Subject: timeout_del() the timer while stopping an interface so that no timeout X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eff8c5b632dda741f5ce79f95cb8933080902df2;p=openbsd timeout_del() the timer while stopping an interface so that no timeout is fired afterwards. ok claudio@ --- 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);