s390: make setup_randomness work

am: 296f7bd7f1

Change-Id: I47ce7a3407fd4716d30d8ab99aa2f6c252ed764f
This commit is contained in:
Heiko Carstens
2017-03-15 02:09:48 +00:00
committed by android-build-merger

View File

@@ -805,10 +805,10 @@ static void __init setup_randomness(void)
{
struct sysinfo_3_2_2 *vmms;
vmms = (struct sysinfo_3_2_2 *) alloc_page(GFP_KERNEL);
if (vmms && stsi(vmms, 3, 2, 2) == 0 && vmms->count)
vmms = (struct sysinfo_3_2_2 *) memblock_alloc(PAGE_SIZE, PAGE_SIZE);
if (stsi(vmms, 3, 2, 2) == 0 && vmms->count)
add_device_randomness(&vmms, vmms->count);
free_page((unsigned long) vmms);
memblock_free((unsigned long) vmms, PAGE_SIZE);
}
/*