From 2b68d77fdddb576eea4203904c0a7197485c355e Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Mon, 5 May 2003 10:14:52 +0000 Subject: [PATCH] Don't panic for FWXF_START state in fw_xfer_unload(). --- sys/dev/firewire/firewire.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index 7875d60daeb..2b03ce0ef32 100644 --- a/sys/dev/firewire/firewire.c +++ b/sys/dev/firewire/firewire.c @@ -913,9 +913,14 @@ fw_xfer_unload(struct fw_xfer* xfer) splx(s); } if (xfer->fc != NULL) { -#if 1 /* this could happen if we call fwohci_arcv() before fwohci_txd() */ +#if 1 if(xfer->state == FWXF_START) - panic("fw_xfer_free FWXF_START\n"); + /* + * This could happen if: + * 1. We call fwohci_arcv() before fwohci_txd(). + * 2. firewire_watch() is called. + */ + printf("fw_xfer_free FWXF_START\n"); #endif fw_tl_free(xfer->fc, xfer); }