HomeFreeBSD

linuxkpi: Add `krealloc_array()`

Description

linuxkpi: Add krealloc_array()

In FreeBSD, this is a wrapper on top of realloc().

V2: Check if n * size would overflow and return NULL if that's the

case. Suggested by hselasky@ and emaste@.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D36959

Details

Provenance
dumbbellAuthored on Nov 11 2022, 5:37 PM
Reviewer
manu
Differential Revision
D36959: linuxkpi: Add `krealloc_array()`
Parents
rG0b8a423d0733: linuxkpi: Introduce module_param() of type `hexint`
Branches
Unknown
Tags
Unknown