On Thu, Aug 27, 2015 at 5:55 AM, Haggai Eran <hagg...@mellanox.com> wrote:
> When no matching listening ID is found for a given request, the net_dev
> that was used to find the request isn't released.
>
> Fixes: 20c36836ecad ("IB/cma: Use found net_dev for passive connections")

same here, Doug, if this ID isn't the one that is actually going to
show off in Linus tree, please either squash this there prior to
getting the bits upstream or hold off till we have  a proper ID

> Signed-off-by: Haggai Eran <hagg...@mellanox.com>
> ---
>  drivers/infiniband/core/cma.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
> index 9b306d7b5c27..b1ab13f3e182 100644
> --- a/drivers/infiniband/core/cma.c
> +++ b/drivers/infiniband/core/cma.c
> @@ -1302,6 +1302,10 @@ static struct rdma_id_private 
> *cma_id_from_event(struct ib_cm_id *cm_id,
>         bind_list = cma_ps_find(rdma_ps_from_service_id(req.service_id),
>                                 cma_port_from_service_id(req.service_id));
>         id_priv = cma_find_listener(bind_list, cm_id, ib_event, &req, 
> *net_dev);
> +       if (IS_ERR(id_priv)) {
> +               dev_put(*net_dev);
> +               *net_dev = NULL;
> +       }
>
>         return id_priv;
>  }
> --
> 1.7.11.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to