# Re: \[PATCH\] powerpc/kexec\_file: Use inclusive range checks in add\_usable\_mem()

- From: Madhavan Srinivasan \<maddy@linux.ibm.com\>
- Date: 2026-09-09 06:19:48 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/09/17535523
- Thread: https://ratatoskr.run/linuxppc-dev/2026/08/17388545/t.md

```text
On Sun, 09 Aug 2026 18:24:01 +0200, Thorsten Blum wrote:
> add_usable_mem() adds usable memory ranges for the kdump kernel.
> 
> The ranges are inclusive, but the partial overlap check uses exclusive
> comparisons. This skips ranges with base == loc_end or end == loc_base.
> Use inclusive comparisons instead.
> 
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/kexec_file: Use inclusive range checks in add_usable_mem()
      https://git.kernel.org/powerpc/c/c6755be4838d6ccd641effbcdc3d917b82631ff9

cheers

```
