aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_resp.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2017-01-10 11:15:52 -0800
committerDoug Ledford <dledford@redhat.com>2017-01-10 16:52:47 -0500
commitab17654476a11a1ed7d89f1104e2acdb7ed1c9ed (patch)
treee09216df38e993039f6fd9798dcb81a5055bc9ca /drivers/infiniband/sw/rxe/rxe_resp.c
parentIB/rxe: Fix a MR reference leak in check_rkey() (diff)
downloadlinux-dev-ab17654476a11a1ed7d89f1104e2acdb7ed1c9ed.tar.xz
linux-dev-ab17654476a11a1ed7d89f1104e2acdb7ed1c9ed.zip
IB/rxe: Fix reference leaks in memory key invalidation code
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>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_resp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c
index 60d78f45aa04..05f374986cea 100644
--- a/drivers/infiniband/sw/rxe/rxe_resp.c
+++ b/drivers/infiniband/sw/rxe/rxe_resp.c
@@ -907,6 +907,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;