Skip to content

Commit

Permalink
Merge tag 'efi-urgent-for-v6.7-1' of git://git.kernel.org/pub/scm/lin…
Browse files Browse the repository at this point in the history
…ux/kernel/git/efi/efi

Pull EFI fix from Ard Biesheuvel:

 - Fix for EFI unaccepted memory handling

* tag 'efi-urgent-for-v6.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
  efi/unaccepted: Fix off-by-one when checking for overlapping ranges
  • Loading branch information
Linus Torvalds committed Nov 30, 2023
2 parents 3b47bc0 + 01b1e3c commit 9d3eac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/efi/unaccepted_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void accept_memory(phys_addr_t start, phys_addr_t end)
* overlap on physical address level.
*/
list_for_each_entry(entry, &accepting_list, list) {
if (entry->end < range.start)
if (entry->end <= range.start)
continue;
if (entry->start >= range.end)
continue;
Expand Down

0 comments on commit 9d3eac3

Please sign in to comment.