Skip to content

Commit

Permalink
Merge pull request ofiwg#5186 from hppritcha/topic/fix_edge_error_ase
Browse files Browse the repository at this point in the history
prov/gni: fix an edge error case
  • Loading branch information
hppritcha authored Jul 27, 2019
2 parents 7444a7d + a486274 commit b27848b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prov/gni/src/gnix_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3286,7 +3286,7 @@ ssize_t _gnix_send(struct gnix_fid_ep *ep, uint64_t loc_addr, size_t len,
ret = _gnix_vc_queue_tx_req(req);
connected = (vc->conn_state == GNIX_VC_CONNECTED);

COND_RELEASE(vc->ep->requires_lock, &vc->ep->vc_lock);
COND_RELEASE(ep->requires_lock, &ep->vc_lock);

/*
* If a new VC was allocated, progress CM before returning.
Expand All @@ -3302,7 +3302,7 @@ ssize_t _gnix_send(struct gnix_fid_ep *ep, uint64_t loc_addr, size_t len,
return ret;

err_get_vc:
COND_RELEASE(vc->ep->requires_lock, &vc->ep->vc_lock);
COND_RELEASE(ep->requires_lock, &ep->vc_lock);
_gnix_fr_free(ep, req);
if (flags & FI_LOCAL_MR)
fi_close(&auto_mr->fid);
Expand Down

0 comments on commit b27848b

Please sign in to comment.