diff options
author | Dan Carpenter | 2022-08-01 13:20:58 +0300 |
---|---|---|
committer | Dan Williams | 2022-08-01 14:24:34 -0700 |
commit | 5e42bcbc3fef6e759dfb4d3f4cfb394c382b4249 (patch) | |
tree | 65adbd2b65a7e3cfe567902be3a2625e779a6906 /include | |
parent | c7e3548cac4a8a8bc1ad183cc7c7249463dff55f (diff) |
cxl/region: decrement ->nr_targets on error in cxl_region_attach()
The ++ needs a match -- on the clean up path. If the p->nr_targets
value gets to be more than 16 it leads to uninitialized data in
cxl_port_setup_targets().
drivers/cxl/core/region.c:995 cxl_port_setup_targets() error: uninitialized symbol 'eiw'.
Fixes: 27b3f8d13830 ("cxl/region: Program target lists")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YuepCvUAoCtdpcoO@kili
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions