Sizing to active processor count means that the array will be too small if
a processor is onlined after cache creation.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
if (!NT_SUCCESS(status))
goto fail4;
- (*Cache)->MagazineCount = KeQueryActiveProcessorCountEx(ALL_PROCESSOR_GROUPS);
+ (*Cache)->MagazineCount = KeQueryMaximumProcessorCountEx(ALL_PROCESSOR_GROUPS);
(*Cache)->Magazine = __CacheAllocate(sizeof (XENBUS_CACHE_MAGAZINE) * (*Cache)->MagazineCount);
status = STATUS_NO_MEMORY;