mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
IB/rxe: Fix reference leaks in memory key invalidation code
[ Upstream commit ab17654476 ]
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Andrew Boyer <andrew.boyer@dell.com>
Cc: Moni Shoua <monis@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
93e1956ddd
commit
326ef0fd4f
@@ -633,6 +633,7 @@ next_wqe:
|
||||
goto exit;
|
||||
}
|
||||
rmr->state = RXE_MEM_STATE_FREE;
|
||||
rxe_drop_ref(rmr);
|
||||
wqe->state = wqe_state_done;
|
||||
wqe->status = IB_WC_SUCCESS;
|
||||
} else if (wqe->wr.opcode == IB_WR_REG_MR) {
|
||||
|
||||
@@ -893,6 +893,7 @@ static enum resp_states do_complete(struct rxe_qp *qp,
|
||||
return RESPST_ERROR;
|
||||
}
|
||||
rmr->state = RXE_MEM_STATE_FREE;
|
||||
rxe_drop_ref(rmr);
|
||||
}
|
||||
|
||||
wc->qp = &qp->ibqp;
|
||||
|
||||
Reference in New Issue
Block a user