From acde38ead3d5eb1eb96d58c43a43a635849f739f Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 26 Mar 2026 14:01:54 -0400 Subject: [PATCH] freebsd_network: Update comment in kernel_malloc. bus_dmamem_alloc doesn't need this behavior anymore. --- src/libs/compat/freebsd_network/malloc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/compat/freebsd_network/malloc.cpp b/src/libs/compat/freebsd_network/malloc.cpp index c64deeee5d..76844a6639 100644 --- a/src/libs/compat/freebsd_network/malloc.cpp +++ b/src/libs/compat/freebsd_network/malloc.cpp @@ -22,8 +22,8 @@ _kernel_malloc(size_t size, int flags) { // According to the FreeBSD kernel malloc man page the allocator is expected // to return power of two aligned addresses for allocations up to one page - // size. While it also states that this shouldn't be relied upon, at least - // bus_dmamem_alloc expects it and drivers may depend on it as well. + // size. While it also states that this shouldn't be relied upon, some drivers + // may depend on it. void *ptr = memalign_etc(size >= PAGESIZE ? PAGESIZE : next_power_of_2(size), size, (flags & M_NOWAIT) ? HEAP_DONT_WAIT_FOR_MEMORY : 0);