aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/memmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/memmap.c')
-rw-r--r--drivers/firmware/memmap.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/firmware/memmap.c b/drivers/firmware/memmap.c
index 0b5b5f619c75..e2e04b007e15 100644
--- a/drivers/firmware/memmap.c
+++ b/drivers/firmware/memmap.c
@@ -114,12 +114,9 @@ static void __meminit release_firmware_map_entry(struct kobject *kobj)
114 * map_entries_bootmem here, and deleted from &map_entries in 114 * map_entries_bootmem here, and deleted from &map_entries in
115 * firmware_map_remove_entry(). 115 * firmware_map_remove_entry().
116 */ 116 */
117 if (firmware_map_find_entry(entry->start, entry->end, 117 spin_lock(&map_entries_bootmem_lock);
118 entry->type)) { 118 list_add(&entry->list, &map_entries_bootmem);
119 spin_lock(&map_entries_bootmem_lock); 119 spin_unlock(&map_entries_bootmem_lock);
120 list_add(&entry->list, &map_entries_bootmem);
121 spin_unlock(&map_entries_bootmem_lock);
122 }
123 120
124 return; 121 return;
125 } 122 }