diff options
author | 2025-04-24 11:32:51 -0400 | |
---|---|---|
committer | 2025-04-25 08:36:59 -0700 | |
commit | 75673fda0c557ae26078177dd14d4857afbf128d (patch) | |
tree | 7c1a500bbd7431dbd69b6c7d050bc818f967d8ec /scripts/lib/kdoc/kdoc_files.py | |
parent | selftests/bpf: Mitigate sockmap_ktls disconnect_after_delete failure (diff) | |
download | linux-rng-75673fda0c557ae26078177dd14d4857afbf128d.tar.xz linux-rng-75673fda0c557ae26078177dd14d4857afbf128d.zip |
bpf: fix possible endless loop in BPF map iteration
The _safe variant used here gets the next element before running the callback,
avoiding the endless loop condition.
Signed-off-by: Brandon Kammerdiener <brandon.kammerdiener@intel.com>
Link: https://lore.kernel.org/r/20250424153246.141677-2-brandon.kammerdiener@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Hou Tao <houtao1@huawei.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions