Don't call sbp_do_attach() recursively after agent reset

while device probing.
This commit is contained in:
Hidetoshi Shimokawa 2003-06-03 23:01:43 +00:00
parent df7898b895
commit de7f8045e0

View File

@ -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;