From 15bb494e456ec9a47b21cc5a3e96f57807f590f0 Mon Sep 17 00:00:00 2001 From: dyoung Date: Wed, 12 Mar 2008 17:23:13 +0000 Subject: [PATCH] In smap_stop(), clear IFF_RUNNING before disabling the device. --- sys/arch/playstation2/dev/if_smap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/playstation2/dev/if_smap.c b/sys/arch/playstation2/dev/if_smap.c index f494cc9b6d86..f33a4f7c33ba 100644 --- a/sys/arch/playstation2/dev/if_smap.c +++ b/sys/arch/playstation2/dev/if_smap.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_smap.c,v 1.11 2008/01/19 22:10:15 dyoung Exp $ */ +/* $NetBSD: if_smap.c,v 1.12 2008/03/12 17:23:13 dyoung Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_smap.c,v 1.11 2008/01/19 22:10:15 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_smap.c,v 1.12 2008/03/12 17:23:13 dyoung Exp $"); #include "debug_playstation2.h" @@ -645,10 +645,10 @@ smap_stop(struct ifnet *ifp, int disable) mii_down(&sc->emac3.mii); + ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); + if (disable) emac3_disable(); - - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); } /*