diff --git a/drivers/firmware/memmap.c b/drivers/firmware/memmap.c index 1815849f83cb5dd8540d5de6a77a118b237eba31..79f18e6d9c4f346e5f04430a67cf7b1cb7dbd97c 100644 --- a/drivers/firmware/memmap.c +++ b/drivers/firmware/memmap.c @@ -286,6 +286,10 @@ int __meminit firmware_map_add_hotplug(u64 start, u64 end, const char *type) { struct firmware_map_entry *entry; + entry = firmware_map_find_entry(start, end - 1, type); + if (entry) + return 0; + entry = firmware_map_find_entry_bootmem(start, end - 1, type); if (!entry) { entry = kzalloc(sizeof(struct firmware_map_entry), GFP_ATOMIC);