diff options
author | Dan Carpenter <[email protected]> | 2023-04-21 13:44:54 +0300 |
---|---|---|
committer | Michal Simek <[email protected]> | 2023-05-12 13:08:04 +0200 |
commit | c58da0ba3e5c86e51e2c1557afaf6f71e00c4533 (patch) | |
tree | 8b7349aeab4dc1a4a7b722cd19e94b5d2f9e3a9a /lib/mpi/mpi-sub-ui.c | |
parent | be11d67a144db79408a19642d0a8d65fb9f52105 (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions