summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-05-05 10:14:52 +0000
committersimokawa <simokawa@FreeBSD.org>2003-05-05 10:14:52 +0000
commit0e30d7422ee177b0eb4c5bfc7f4b4f77582c830d (patch)
treeebdf82eb0c9a3ab47c2ec9e4923329aad589a339
parent068969a74dab7c397d77a7bd6818faf82cd875dd (diff)
downloadFreeBSD-src-0e30d7422ee177b0eb4c5bfc7f4b4f77582c830d.zip
FreeBSD-src-0e30d7422ee177b0eb4c5bfc7f4b4f77582c830d.tar.gz
Don't panic for FWXF_START state in fw_xfer_unload().
-rw-r--r--sys/dev/firewire/firewire.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c
index 7875d60..2b03ce0 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);
}
OpenPOWER on IntegriCloud