HomeFreeBSD

Fixup the geliboot sector rounding code

Description

Fixup the geliboot sector rounding code

Replace all rounding with the round{up,down}2 macros
a missing set of braces caused the previous code to be incorrect

replace alloca() with malloc() because alloca() can return an allocation
that is actually invalid, causing boot to fail

Reviewed by: emaste, ed
Thanks To: peter
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D6213

Details

Provenance
allanjudeAuthored on
Reviewer
emaste
Differential Revision
D6213: Fixup the geliboot sector round code
Parents
rS300256: Remove DTrace tooklkit from the mtree and add the files to remove
Branches
Unknown
Tags
Unknown