On Mon, May 28, 2018 at 2:26 PM, Andy Shevchenko <[email protected]> wrote: > On Mon, May 28, 2018 at 2:29 PM, Bartlomiej Zolnierkiewicz > <[email protected]> wrote: > >> - s2mps11->ext_control_gpiod = devm_kmalloc(&pdev->dev, >> + s2mps11->ext_control_gpiod = devm_kzalloc(&pdev->dev, >> sizeof(*s2mps11->ext_control_gpiod) * rdev_num, >> GFP_KERNEL); > > devm_kcalloc() I would rather use.
The patch replace kmalloc with kzalloc amd kcalloc does not initialize memory to zero. We don't have demv_kzcalloc() I'm afraid, I wonder it even makes sense to add? Yours, Linus Walleij

