Skip to content
Commit eaf76e0d authored by Stefan Richter's avatar Stefan Richter
Browse files

firewire: sbp2: provide fallback if mgt_ORB_timeout is missing



The Unit_Characteristics entry of an SBP-2 unit directory is not
mandatory as far as I can tell.  If it is missing, we would probably
fail to log in into the target because firewire-sbp2 would not wait for
status after it sent the login request.

The fix moves the cleanup of tgt->mgt_orb_timeout into a place where it
is executed exactly once before login, rather than 0..n times depending
on the target's config ROM.  With targets with one or more
Unit_Characteristics entries, the result is the same as before.

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 544df55d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment