aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-07-31 12:56:31 +0000
committerMark Johnston <markj@FreeBSD.org>2026-07-31 12:57:11 +0000
commit0aca7ce7af35fdf87db2b8866c623b0c275ee3e9 (patch)
tree33e3b8a449a40b8d2c9fb030647f8ee18b41d318
parent459aa032e87275ebe10847592ea2ddea0c3ed693 (diff)
malloc: Fix domainset usage in malloc_domainset() for large allocs
We should of course pass the provided domainset rather than copying what plain malloc() does. Fixes: 89deca0a3361 ("malloc: make malloc_large closer to standalone") Reviewed by: rlibby MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58316
-rw-r--r--sys/kern/kern_malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 0be0a417e19c..b0bb4511cb16 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -729,7 +729,7 @@ malloc_domainset(size_t size, struct malloc_type *mtp, struct domainset *ds,
#endif
if (__predict_false(size > kmem_zmax || (flags & M_EXEC) != 0)) {
- va = malloc_large(&size, mtp, DOMAINSET_RR(), flags);
+ va = malloc_large(&size, mtp, ds, flags);
} else {
int indx;