[PATCH net-next 2/5] net: dpaa: eliminate NR_CPUS dependency in egress_fqs[] and conf_fqs[]
Jakub Kicinski
kuba at kernel.org
Sat Jul 13 15:35:32 PDT 2024
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
More information about the linux-arm-kernel
mailing list