The RSP service point is being removed because of improper
state/flag checking during CR callback. Add state check
for DAPL_SP_STATE_RSP_LISTENING.
Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
* up after the last CR is removed
*/
if (sp_ptr->listening != DAT_TRUE && sp_ptr->cr_list_count == 0
- && sp_ptr->state != DAPL_SP_STATE_FREE) {
+ && sp_ptr->state != DAPL_SP_STATE_FREE
+ && sp_ptr->state != DAPL_SP_STATE_RSP_LISTENING) {
dapl_dbg_log(DAPL_DBG_TYPE_CM,
"--> dapli_get_sp_ep! disconnect dump sp: %p \n",
sp_ptr);