summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/sbp.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-06-03 23:01:43 +0000
committersimokawa <simokawa@FreeBSD.org>2003-06-03 23:01:43 +0000
commit196e6d627e18c921b8838f0677c9385a66468642 (patch)
tree04d4bf364bb7037d52d12514fd6e10f676030df6 /sys/dev/firewire/sbp.c
parent402bb3520a1e205daa3eff219c0e2ce7e45be94d (diff)
downloadFreeBSD-src-196e6d627e18c921b8838f0677c9385a66468642.zip
FreeBSD-src-196e6d627e18c921b8838f0677c9385a66468642.tar.gz
Don't call sbp_do_attach() recursively after agent reset
while device probing.
Diffstat (limited to 'sys/dev/firewire/sbp.c')
-rw-r--r--sys/dev/firewire/sbp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c
index 4afd911..7bb8370 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;
OpenPOWER on IntegriCloud