Re: [PATCH 1/1] cxl/hdm: Fix potential infinite loop in __cxl_dpa_reserve()
From: Ira Weiny
Date: Mon Jan 12 2026 - 10:52:48 EST
Li Ming wrote:
> In __cxl_dpa_reserve(), it will check if the new resource range is
> included in one of paritions of the cxl memory device.
> cxlds->nr_paritions is used to represent how many partitions information
> the cxl memory device has. In the loop, if driver cannot find a
> partition including the new resource range, it will be an infinite loop.
>
> Fixes: be5cbd084027 ("cxl: Kill enum cxl_decoder_mode")
Technically the bug was introduced in:
Fixes: 991d98f17d31 ("cxl: Make cxl_dpa_alloc() DPA partition number agnostic")
With that,
Reviewed-by: Ira Weiny <ira.weiny@xxxxxxxxx>
[snip]