From: Vishal Kulkarni <vis...@chelsio.com>
Date: Mon, 14 Oct 2019 13:20:35 +0530

> @@ -760,7 +762,9 @@ void cxgb4_register_uld(enum cxgb4_uld type,
>               if (ret)
>                       goto free_irq;
>               adap->uld[type] = *p;
> -             uld_attach(adap, type);
> +             ret = uld_attach(adap, type);
> +             if (ret)
> +                     goto free_irq;

You're not freeing up all of the txq_info ULD stuff that setup_sge_txq_uld
created.

Reply via email to