]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: allocate properly aligned buffer for network packet
authorToomas Soome <tsoome@FreeBSD.org>
Mon, 13 Jan 2020 18:22:54 +0000 (18:22 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 7 Oct 2021 03:36:34 +0000 (22:36 -0500)
commit000aad3d093a376bb1104a284b4102149db43155
treec2a639e971d84c6c7132688673f663a8960dae0e
parentf76c1f3538b7e2a9a783af0c22283e3a3db3906f
loader: allocate properly aligned buffer for network packet

Use memalign(4, size) to ensure we have properly aligned buffer.

(cherry picked from commit 659bf32dfc595b6cd6aeda7f05cb57872c64d2d1)
stand/efi/libefi/efinet.c
stand/i386/libi386/pxe.c
stand/libofw/ofw_net.c
stand/uboot/lib/net.c