Fix panic due to using uninitialised NUMA_NODES

This commit is contained in:
R Aadarsh
2026-06-21 14:30:07 +05:30
parent 2ad76496c4
commit 8171dc616b
+1 -1
View File
@@ -23,7 +23,7 @@ impl Slit {
}
pub fn init(&self, numa_nodes: &mut HashMap<u32, NumaNode>) {
let address = self.address;
let ndom = NUMA_NODES.get().unwrap().len() as u32;
let ndom = numa_nodes.len() as u32;
for i in 0..ndom {
for j in i..ndom {