From a12d5644f5c5a2fa21bd66dfc2c3c4f3ac228ad0 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 2 Jul 2005 23:10:17 +0000 Subject: clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources. --- sys/dev/ic/xl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic/xl.c') diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index 38fde3ecbde..aafa07fd4f6 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.64 2005/04/25 17:55:51 brad Exp $ */ +/* $OpenBSD: xl.c,v 1.65 2005/07/02 23:10:16 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2606,10 +2606,10 @@ xl_stop(sc) /* Stop the stats updater. */ timeout_del(&sc->xl_stsup_tmo); - xl_freetxrx(sc); - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); + xl_freetxrx(sc); + return; } -- cgit v1.2.3