aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-08-01 13:20:58 +0300
committerDan Williams <[email protected]>2022-08-01 14:24:34 -0700
commit5e42bcbc3fef6e759dfb4d3f4cfb394c382b4249 (patch)
tree65adbd2b65a7e3cfe567902be3a2625e779a6906 /drivers/fpga/fpga-mgr.c
parentc7e3548cac4a8a8bc1ad183cc7c7249463dff55f (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 <[email protected]> Link: https://lore.kernel.org/r/YuepCvUAoCtdpcoO@kili Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions