On Mon, Sep 07, 2020 at 03:09:20PM +0300, Leon Romanovsky wrote: > -void mlx5_ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata) > +int mlx5_ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata) > { > struct mlx5_ib_dev *dev = to_mdev(wq->device); > struct mlx5_ib_rwq *rwq = to_mrwq(wq); > + int ret; > > - mlx5_core_destroy_rq_tracked(dev, &rwq->core_qp); > + ret = mlx5_core_destroy_rq_tracked(dev, &rwq->core_qp); > + if (ret && udata) > + return ret; No udata check here Jason