Ignore:
Timestamp:
Apr 16, 2017, 3:07:01 PM (2 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/arch/s390/kernel/setup.c

    r25370 r31869  
    823823        struct sysinfo_3_2_2 *vmms;
    824824
    825         vmms = (struct sysinfo_3_2_2 *) alloc_page(GFP_KERNEL);
    826         if (vmms && stsi(vmms, 3, 2, 2) == 0 && vmms->count)
    827                 add_device_randomness(&vmms, vmms->count);
    828         free_page((unsigned long) vmms);
     825        vmms = (struct sysinfo_3_2_2 *) memblock_alloc(PAGE_SIZE, PAGE_SIZE);
     826        if (stsi(vmms, 3, 2, 2) == 0 && vmms->count)
     827                add_device_randomness(&vmms->vm, sizeof(vmms->vm[0]) * vmms->count);
     828        memblock_free((unsigned long) vmms, PAGE_SIZE);
    829829}
    830830
Note: See TracChangeset for help on using the changeset viewer.