Re: [PATCH 0/8] slab: provide and use krealloc_array()

2020-11-05 Thread Linus Walleij
On Tue, Oct 27, 2020 at 1:17 PM Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Andy brought to my attention the fact that users allocating an array of > equally sized elements should check if the size multiplication doesn't > overflow. This is why we have helpers like kmalloc_array()

[PATCH 0/8] slab: provide and use krealloc_array()

2020-10-27 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Andy brought to my attention the fact that users allocating an array of equally sized elements should check if the size multiplication doesn't overflow. This is why we have helpers like kmalloc_array(). However we don't have krealloc_array() equivalent and there are man