Skip to content

Commit 49c8b24

Browse files
Yasuaki Ishimatsutorvalds
authored andcommitted
drivers/firmware/memmap.c: pass the correct argument to firmware_map_find_entry_bootmem()
firmware_map_add_hotplug() calls firmware_map_find_entry_bootmem() to get free firmware_map_entry. But end arguments is not correct. So firmware_map_find_entry_bootmem() cannot not find firmware_map_entry. The patch passes the correct end argument to firmware_map_find_entry_bootmem(). Signed-off-by: Yasuaki Ishimatsu <[email protected]> Cc: Santosh Shilimkar <[email protected]> Cc: Toshi Kani <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent f6f8ed4 commit 49c8b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/memmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ int __meminit firmware_map_add_hotplug(u64 start, u64 end, const char *type)
286286
{
287287
struct firmware_map_entry *entry;
288288

289-
entry = firmware_map_find_entry_bootmem(start, end, type);
289+
entry = firmware_map_find_entry_bootmem(start, end - 1, type);
290290
if (!entry) {
291291
entry = kzalloc(sizeof(struct firmware_map_entry), GFP_ATOMIC);
292292
if (!entry)

0 commit comments

Comments
 (0)