Re: [PATCH v1 1/1] kcsan: debugfs: Use krealloc_array() to replace krealloc()
From: Andy Shevchenko
Date: Thu Nov 21 2024 - 09:13:10 EST
On Thu, Nov 21, 2024 at 03:04:04PM +0100, Marco Elver wrote:
> On Thu, 21 Nov 2024 at 14:58, Andy Shevchenko
> <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> >
> > Use krealloc_array() to replace krealloc() with multiplication.
> > krealloc_array() has multiply overflow check, which will be safer.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
>
> Reviewed-by: Marco Elver <elver@xxxxxxxxxx>
Thank you!
> Do you have a tree to take this through? Otherwise I'll take it.
No, but please, wait a bit, I have a sequential dependent patch.
I'll send a v2 soon.
--
With Best Regards,
Andy Shevchenko