HomeFreeBSD

dev: make some use of mallocarray(9).

Description

dev: make some use of mallocarray(9).

Focus on code where we are doing multiplications within malloc(9). None of
these is likely to overflow, however the change is still useful as some
static checkers can benefit from the allocation attributes we use for
mallocarray.

This initial sweep only covers malloc(9) calls with M_NOWAIT. No good
reason but I started doing the changes before r327796 and at that time it
was convenient to make sure the sorrounding code could handle NULL values.

Details

Provenance
pfgAuthored on
Parents
rS327948: Fix possible panic when creating VirtIO console dev aliases
Branches
Unknown
Tags
Unknown