OpenCloudOS-Kernel/drivers/soc/xilinx
Dan Carpenter c58da0ba3e driver: soc: xilinx: use _safe loop iterator to avoid a use after free
The hash_for_each_possible() loop dereferences "eve_data" to get the
next item on the list.  However the loop frees eve_data so it leads to
a use after free.  Use hash_for_each_possible_safe() instead.

Fixes: c7fdb2404f ("drivers: soc: xilinx: add xilinx event management driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/761e0e4a-4caf-4a71-8f47-1c6ad908a848@kili.mountain
Signed-off-by: Michal Simek <michal.simek@amd.com>
2023-05-12 13:08:04 +02:00
..
Kconfig drivers: soc: xilinx: add xilinx event management driver 2021-12-03 16:08:46 +01:00
Makefile drivers: soc: xilinx: add xilinx event management driver 2021-12-03 16:08:46 +01:00
xlnx_event_manager.c driver: soc: xilinx: use _safe loop iterator to avoid a use after free 2023-05-12 13:08:04 +02:00
zynqmp_pm_domains.c firmware: xilinx: Remove kernel-doc marking in the code 2023-01-05 10:18:07 +01:00
zynqmp_power.c soc: xilinx: Use of_property_present() for testing DT property presence 2023-05-12 13:06:14 +02:00