On Fri, Jun 20, 2014 at 08:58:32PM +0300, Dan Carpenter wrote:
>    976        
>    977        err_create:
>    978                if (qp->create_type == MLX5_QP_USER)
>    979                        destroy_qp_user(pd, qp);
>                         ^^^^^^^^^^^^^^^
> But we dereference it inside destroy_qp_user() unconditionally.
> 
>    980                else if (qp->create_type == MLX5_QP_KERNEL)
>    981                        destroy_qp_kernel(dev, qp);
> 

When we get here we already updated create_type and since all
MLX5_QP_USER type QPs have PD the logic is not broken.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to