summaryrefslogtreecommitdiff
path: root/include/mtd/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <rppt@kernel.org>2026-03-20 15:59:48 +0200
committerArd Biesheuvel <ardb@kernel.org>2026-03-20 15:31:10 +0100
commit217c0a5c177a3d4f7c8497950cbf5c36756e8bbb (patch)
tree569792bcb9e9830bcfcb6dcfd44f86fefcc45895 /include/mtd/git@git.tavy.me:linux.git
parenta4b0bf6a40f3c107c67a24fbc614510ef5719980 (diff)
x86/efi: efi_unmap_boot_services: fix calculation of ranges_to_free size
ranges_to_free array should have enough room to store the entire EFI memmap plus an extra element for NULL entry. The calculation of this array size wrongly adds 1 to the overall size instead of adding 1 to the number of elements. Add parentheses to properly size the array. Reported-by: Guenter Roeck <linux@roeck-us.net> Fixes: a4b0bf6a40f3 ("x86/efi: defer freeing of boot services memory") Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'include/mtd/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions