On Mon, Feb 03, 2025 at 01:39:02PM +0530, Raag Jadav wrote: > Convert to use devm_kmemdup_array() which is more robust. ... > chip->num_plls = chip->chip_spec->num_plls; > - chip->plls = devm_kcalloc(dev, > - chip->num_plls, > - sizeof(struct uniphier_aio_pll), > - GFP_KERNEL); > + chip->plls = devm_kmemdup_array(dev, chip->chip_spec->plls, chip->num_plls, > + sizeof(struct uniphier_aio_pll), GFP_KERNEL); sizeof(*chip->plls) ? > if (!chip->plls) > return -ENOMEM; -- With Best Regards, Andy Shevchenko