Commit 271b4a84 authored by Dag Moxnes's avatar Dag Moxnes Committed by Greg Kroah-Hartman

rds: ib: Fix missing call to rds_ib_dev_put in rds_ib_setup_qp

[ Upstream commit 91a825290ca4eae88603bc811bf74a45f94a3f46 ]

The function rds_ib_setup_qp is calling rds_ib_get_client_data and
should correspondingly call rds_ib_dev_put. This call was lost in
the non-error path with the introduction of error handling done in
commit 3b12f73a ("rds: ib: add error handle")
Signed-off-by: default avatarDag Moxnes <>
Reviewed-by: default avatarHåkon Bugge <>
Acked-by: default avatarSantosh Shilimkar <>
Signed-off-by: default avatarDavid S. Miller <>
Signed-off-by: default avatarSasha Levin <>
parent c2c87f5b
......@@ -505,7 +505,7 @@ static int rds_ib_setup_qp(struct rds_connection *conn)
rdsdebug("conn %p pd %p cq %p %p\n", conn, ic->i_pd,
ic->i_send_cq, ic->i_recv_cq);
return ret;
goto out;
......@@ -530,6 +530,7 @@ send_cq_out:
ic->i_send_cq = NULL;
rds_ib_remove_conn(rds_ibdev, conn);
return ret;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment