diff options
author | 2022-08-01 13:20:58 +0300 | |
---|---|---|
committer | 2022-08-01 14:24:34 -0700 | |
commit | 5e42bcbc3fef6e759dfb4d3f4cfb394c382b4249 (patch) | |
tree | 65adbd2b65a7e3cfe567902be3a2625e779a6906 /tools/perf/scripts/python/stackcollapse.py | |
parent | cxl/region: prevent underflow in ways_to_cxl() (diff) | |
download | wireguard-linux-5e42bcbc3fef6e759dfb4d3f4cfb394c382b4249.tar.xz wireguard-linux-5e42bcbc3fef6e759dfb4d3f4cfb394c382b4249.zip |
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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions