HomeFreeBSD

malloc_aligned(9): allow zero size and alignment

Description

malloc_aligned(9): allow zero size and alignment

For alignment we do not need to do anything to make it operational.
For size, upgrade zero sized request to one byte so that we do not
request insane amount of memory for placeholder.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32127

Details

Provenance
kibAuthored on Sep 24 2021, 7:38 PM
Reviewer
markj
Differential Revision
D32127: Better handling for alignment requirements in x86 busdma bounce.
Parents
rG2ec4c3c7f3ef: net80211(4): Fix a few common typos in source code comments
Branches
Unknown
Tags
Unknown