From de7f8045e07ccd1b9f8f2c70fc69f0d3586b6ce0 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Tue, 3 Jun 2003 23:01:43 +0000 Subject: [PATCH] Don't call sbp_do_attach() recursively after agent reset while device probing. --- sys/dev/firewire/sbp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c index 4afd9117c50..7bb83706d72 100644 --- a/sys/dev/firewire/sbp.c +++ b/sys/dev/firewire/sbp.c @@ -1090,7 +1090,7 @@ END_DEBUG xfer = sbp_write_cmd(sdev, FWTCODE_WREQQ, 0x04); if (xfer == NULL) return; - if (sdev->status == SBP_DEV_ATTACHED) + if (sdev->status == SBP_DEV_ATTACHED || sdev->status == SBP_DEV_PROBE) xfer->act.hand = sbp_agent_reset_callback; else xfer->act.hand = sbp_do_attach;