During HCA DR testing we noticed a panic due to assertion failure in ibmf_saa_impl_hca_detach():
ASSERT(saa_portp != NULL);
This occurred when unconfiguring an HCA using cfgadm failed in the first attempt with an error message. The second attempt to unconfigure the HCA resulted in the assertion failure panic.