2d5d61a46d
The sbp_cam_detach_target can be called from sbp_post_explore function on the first target that is not really attached and it was written with the corresponding safety check in place to tolerate that. Unfortunately the recent locking cleanup did add a locking assertion that tries to dereference the target->sbp pointer unconditionally, which causes less than desirable outcome. Since the assertion is useful, just initialize the target sbp pointer once when sbp device is being initialized instead of when the target is being attached. This makes assertion work in all cases and fixes the crash on boot. |
||
---|---|---|
.. | ||
00README | ||
firewire_phy.h | ||
firewire.c | ||
firewire.h | ||
firewirereg.h | ||
fwcrom.c | ||
fwdev.c | ||
fwdma.c | ||
fwdma.h | ||
fwmem.c | ||
fwmem.h | ||
fwohci_pci.c | ||
fwohci.c | ||
fwohcireg.h | ||
fwohcivar.h | ||
fwphyreg.h | ||
iec13213.h | ||
iec68113.h | ||
if_fwe.c | ||
if_fwevar.h | ||
if_fwip.c | ||
if_fwipvar.h | ||
sbp_targ.c | ||
sbp.c | ||
sbp.h |