]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm: make some use of mallocarray(9).
authorPedro F. Giffuni <pfg@FreeBSD.org>
Mon, 15 Jan 2018 21:09:58 +0000 (21:09 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Mon, 15 Jan 2018 21:09:58 +0000 (21:09 +0000)
commita67b3b1621b20979f6e204b8ee3eeaf98dd2de73
tree6355ffb77c7585ceee36eddbbd463d451309eebc
parent74641f0bc6f251da3823151f435518b96df3bb9a
arm: make some use of mallocarray(9).

Focus on code where we are doing multiplications within malloc(9). None of
these ire 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.

X-Differential revision: https://reviews.freebsd.org/D13837
sys/arm/xscale/ixp425/if_npe.c
sys/arm64/arm64/busdma_bounce.c