Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1391 from Kamalheib/bnxt_re_free
providers/bnxt_re: Fix bnxt_re_alloc_queue_ptr error flow
  • Loading branch information
rleon committed Sep 26, 2023
2 parents 55fa316 + accaf33 commit 458632c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions providers/bnxt_re/verbs.c
Expand Up @@ -1035,10 +1035,9 @@ static int bnxt_re_alloc_queue_ptr(struct bnxt_re_qp *qp,

if (!attr->srq) {
qp->jrqq = calloc(1, sizeof(struct bnxt_re_joint_queue));
if (!qp->jrqq) {
free(qp->jsqq);
if (!qp->jrqq)
goto fail;
}

qp->jrqq->hwque = calloc(1, sizeof(struct bnxt_re_queue));
if (!qp->jrqq->hwque)
goto fail;
Expand Down

0 comments on commit 458632c

Please sign in to comment.