[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87zijoz2cj.fsf@gmail.com>
Date: Thu, 22 Dec 2016 11:26:36 +0100
From: Nicolai Stange <nicstange@...il.com>
To: Mika Penttilä <mika.penttila@...tfour.com>
Cc: Nicolai Stange <nicstange@...il.com>,
Matt Fleming <matt@...eblueprint.co.uk>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, <x86@...nel.org>,
<linux-efi@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/2] efi: efi_mem_reserve(): don't reserve through memblock after mm_init()
Mika Penttilä <mika.penttila@...tfour.com> writes:
> On 21.12.2016 20:28, Nicolai Stange wrote:
>> /**
>> * efi_mem_reserve - Reserve an EFI memory region
>> @@ -419,7 +422,7 @@ void __init __weak efi_arch_mem_reserve(phys_addr_t addr, u64 size) {}
>> */
>> void __init efi_mem_reserve(phys_addr_t addr, u64 size)
>> {
>> - if (!memblock_is_region_reserved(addr, size))
>> + if (slab_is_available() && !memblock_is_region_reserved(addr, size))
>> memblock_reserve(addr, size);
> Maybe !slab_is_available() ?
You're right, thanks for catching this!
Fixed in v2 at http://lkml.kernel.org/r/20161222102340.2689-2-nicstange@gmail.com
Thanks,
Nicolai
Powered by blists - more mailing lists