[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <67AE1ED5-55ED-4572-92E9-9FCE18C824A5@oracle.com>
Date: Wed, 25 Apr 2018 15:48:51 +0200
From: Håkon Bugge <haakon.bugge@...cle.com>
To: Dag Moxnes <dag.moxnes@...cle.com>
Cc: Santosh Shilimkar <santosh.shilimkar@...cle.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
OFED mailing list <linux-rdma@...r.kernel.org>,
rds-devel@....oracle.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rds: ib: Fix missing call to rds_ib_dev_put in
rds_ib_setup_qp
> On 25 Apr 2018, at 13:22, Dag Moxnes <dag.moxnes@...cle.com> wrote:
>
> 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 3b12f73a5c29 ("rds: ib: add error handle")
>
> Signed-off-by: Dag Moxnes <dag.moxnes@...cle.com>
Reviewed-by: Håkon Bugge <haakon.bugge@...cle.com>
Thxs, Håkon
> ---
> net/rds/ib_cm.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c
> index eea1d86..13b38ad 100644
> --- a/net/rds/ib_cm.c
> +++ b/net/rds/ib_cm.c
> @@ -547,7 +547,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;
>
> sends_out:
> vfree(ic->i_sends);
> @@ -572,6 +572,7 @@ static int rds_ib_setup_qp(struct rds_connection *conn)
> ic->i_send_cq = NULL;
> rds_ibdev_out:
> rds_ib_remove_conn(rds_ibdev, conn);
> +out:
> rds_ib_dev_put(rds_ibdev);
>
> return ret;
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists