diff options
author | 2023-04-21 13:44:54 +0300 | |
---|---|---|
committer | 2023-05-12 13:08:04 +0200 | |
commit | c58da0ba3e5c86e51e2c1557afaf6f71e00c4533 (patch) | |
tree | 8b7349aeab4dc1a4a7b722cd19e94b5d2f9e3a9a /scripts/generate_rust_analyzer.py | |
parent | soc: xilinx: Use of_property_present() for testing DT property presence (diff) | |
download | wireguard-linux-c58da0ba3e5c86e51e2c1557afaf6f71e00c4533.tar.xz wireguard-linux-c58da0ba3e5c86e51e2c1557afaf6f71e00c4533.zip |
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: c7fdb2404f66 ("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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions