We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5caca32 commit e035389Copy full SHA for e035389
arch/s390/kernel/setup.c
@@ -879,14 +879,12 @@ static void __init setup_randomness(void)
879
{
880
struct sysinfo_3_2_2 *vmms;
881
882
- vmms = (struct sysinfo_3_2_2 *) memblock_phys_alloc(PAGE_SIZE,
883
- PAGE_SIZE);
+ vmms = memblock_alloc(PAGE_SIZE, PAGE_SIZE);
884
if (!vmms)
885
panic("Failed to allocate memory for sysinfo structure\n");
886
-
887
if (stsi(vmms, 3, 2, 2) == 0 && vmms->count)
888
add_device_randomness(&vmms->vm, sizeof(vmms->vm[0]) * vmms->count);
889
- memblock_free((unsigned long) vmms, PAGE_SIZE);
+ memblock_free_ptr(vmms, PAGE_SIZE);
890
}
891
892
/*
0 commit comments