diff options
| author | Li Ming <ming.li@zohomail.com> | 2026-01-12 20:05:26 +0800 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-01-12 08:59:16 -0700 |
| commit | d4026a44626490dc4eca4dd2c4d0816338fa179b (patch) | |
| tree | 79a0ebb13f46a12aa053f1184090df27cace453b /net/openvswitch | |
| parent | 49d106347913201b6bc6d810c964b90781db8343 (diff) | |
cxl/hdm: Fix potential infinite loop in __cxl_dpa_reserve()
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.
[ dj: Removed incorrect fixes tag ]
Fixes: 991d98f17d31 ("cxl: Make cxl_dpa_alloc() DPA partition number agnostic")
Signed-off-by: Li Ming <ming.li@zohomail.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260112120526.530232-1-ming.li@zohomail.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'net/openvswitch')
0 files changed, 0 insertions, 0 deletions
