summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-08 15:16:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-08 15:16:36 +0200
commitdba9346b43351fbcf7cf33c41a3c8bd90fa1060c (patch)
treeb07a2a85eb825a6ac103352bdf5b1652e6094aa4
parentif_ffec: Allow PHY that is connected to other FFEC (diff)
downloadrtems-libbsd-dba9346b43351fbcf7cf33c41a3c8bd90fa1060c.tar.bz2
uma_core.c: Fix use of uninitialized variable
Update #4475.
-rw-r--r--freebsd/sys/vm/uma_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/sys/vm/uma_core.c b/freebsd/sys/vm/uma_core.c
index a1ea3497..8448bd77 100644
--- a/freebsd/sys/vm/uma_core.c
+++ b/freebsd/sys/vm/uma_core.c
@@ -3924,6 +3924,8 @@ uma_prealloc(uma_zone_t zone, int items)
#ifndef __rtems__
vm_domainset_iter_policy_ref_init(&di, &keg->uk_dr, &domain,
&aflags);
+#else /* __rtems__ */
+ domain = 0;
#endif /* __rtems__ */
for (;;) {
slab = keg_alloc_slab(keg, zone, domain, M_WAITOK,