drivers/firmware/memmap.c: don't allocate firmware_map_entry of same memory range
[deliverable/linux.git] / drivers / firmware / memmap.c
index 1815849f83cb5dd8540d5de6a77a118b237eba31..79f18e6d9c4f346e5f04430a67cf7b1cb7dbd97c 100644 (file)
@@ -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);
This page took 0.034232 seconds and 5 git commands to generate.