[PATCH v3 5/9] pinctrl: use krealloc_array()

Linus Walleij linus.walleij at linaro.org
Tue Nov 10 14:48:30 UTC 2020


On Mon, Nov 9, 2020 at 12:07 PM Bartosz Golaszewski <brgl at bgdev.pl> wrote:

> From: Bartosz Golaszewski <bgolaszewski at baylibre.com>
>
> Use the helper that checks for overflows internally instead of manually
> calculating the size of the new array.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski at baylibre.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>

Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij


More information about the dri-devel mailing list