> -
>       if (conf->txmode.mq_mode != RTE_ETH_MQ_TX_NONE) {
>               PMD_INIT_LOG(ERR, "Multi-queue TX mode %d is not supported",
>                            conf->txmode.mq_mode);
> diff --git a/drivers/net/idpf/idpf_vchnl.c b/drivers/net/idpf/idpf_vchnl.c
> index ac6486d4ef..88770447f8 100644
> --- a/drivers/net/idpf/idpf_vchnl.c
> +++ b/drivers/net/idpf/idpf_vchnl.c
> @@ -1197,6 +1197,9 @@ idpf_vc_dealloc_vectors(struct idpf_vport *vport)
>       int err, len;
> 
>       alloc_vec = vport->recv_vectors;
> +     if (alloc_vec == NULL)
> +             return -EINVAL;
> +
Would it be better to check before idpf_vc_dealloc_vectors?

Reply via email to