diff options
| author | Koba Ko <kobak@nvidia.com> | 2026-04-14 05:45:27 +0300 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-06-04 18:44:00 +0300 |
| commit | 16329b510f76e5b824e05bf8add8b29850f1f16f (patch) | |
| tree | 19b9840d68e4c97563cdf6c286912925d0b31cb5 /include/linux/timerqueue.h | |
| parent | 574eda81d0a7238af3268e88f9effe22953460bc (diff) | |
| download | linux-16329b510f76e5b824e05bf8add8b29850f1f16f.tar.xz | |
cxl/region: Validate partition index before array access
construct_region() reads cxled->part and uses it to index
cxlds->part[] without checking for a negative value. If the
partition was never resolved, part remains at its initial value
of -1, causing an out-of-bounds array access.
Add a guard to return -EBUSY when part is negative.
The check was dropped during a merge.
Signed-off-by: Koba Ko <kobak@nvidia.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20260414024527.3399590-1-kobak@nvidia.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
