Re: [PATCH net-next 2/5] net: dpaa: eliminate NR_CPUS dependency in egress_fqs[] and conf_fqs[]

From: Jakub Kicinski
Date: Sat Jul 13 2024 - 18:37:02 EST


On Thu, 11 Jul 2024 02:00:22 +0300 Vladimir Oltean wrote:
> + priv->egress_fqs = devm_kcalloc(dev, dpaa_max_num_txqs(),
> + sizeof(*priv->egress_fqs),
> + GFP_KERNEL);
> + if (!priv->egress_fqs)
> + goto free_netdev;
> +
> + priv->conf_fqs = devm_kcalloc(dev, dpaa_max_num_txqs(),
> + sizeof(*priv->conf_fqs),
> + GFP_KERNEL);
> + if (!priv->conf_fqs)
> + goto free_netdev;

Gotta set err before jumping
--
pw-bot: cr