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

(cherry picked from commit 1ad6b2b1daa8937b2e1ced43802adba5734ba92b)

Details

Provenance
dumbbellAuthored on Nov 11 2022, 5:37 PM
manuCommitted on Jan 24 2023, 9:08 AM
Reviewer
manu
Differential Revision
D36959: linuxkpi: Add `krealloc_array()`
Parents
rG5001242e807f: linuxkpi: Introduce module_param() of type `hexint`
Branches
Unknown
Tags
Unknown