From f0dde538b034ea869d143bc8250c7136c25baf09 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sun, 27 May 2007 12:45:05 +0000 Subject: [PATCH] Rather than entering DDB with the message "unexpected error" and wedging the card, panic explicitly if EN_DEBUG is enabled. In the (default) case of !EN_DEBUG, the driver resets the card. Probably this case shouldn't exist at all. --- sys/dev/en/midway.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/en/midway.c b/sys/dev/en/midway.c index 85e4a807d995..aaa8570b0b79 100644 --- a/sys/dev/en/midway.c +++ b/sys/dev/en/midway.c @@ -2435,8 +2435,7 @@ en_intr(void *arg) device_printf(sc->dev, "unexpected interrupt=0x%b, " "resetting\n", reg, MID_INTBITS); #ifdef EN_DEBUG - kdb_enter("en: unexpected error"); - sc->ifp->if_drv_flags &= ~IFF_DRV_RUNNING; /* FREEZE! */ + panic("en: unexpected error"); #else en_reset_ul(sc); en_init(sc);