summaryrefslogtreecommitdiffstats
path: root/block/bfq-cgroup.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <bentiss@kernel.org>2024-04-30 12:43:24 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2024-04-30 16:28:33 +0200
commitb98a5c68ccaa94e93b9e898091fe2cf21c1500e6 (patch)
tree1d966ca8b4a480aaa183bc5d1eb2759645af885a /block/bfq-cgroup.c
parent1bba3b3d373dbafae891e7cb06b8c82c8d62aba1 (diff)
downloadlinux-b98a5c68ccaa94e93b9e898091fe2cf21c1500e6.tar.gz
linux-b98a5c68ccaa94e93b9e898091fe2cf21c1500e6.tar.bz2
linux-b98a5c68ccaa94e93b9e898091fe2cf21c1500e6.zip
bpf: Do not walk twice the map on free
If someone stores both a timer and a workqueue in a map, on free we would walk it twice. Add a check in array_map_free_timers_wq and free the timers and workqueues if they are present. Fixes: 246331e3f1ea ("bpf: allow struct bpf_wq to be embedded in arraymaps and hashmaps") Signed-off-by: Benjamin Tissoires <bentiss@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/bpf/20240430-bpf-next-v3-1-27afe7f3b17c@kernel.org
Diffstat (limited to 'block/bfq-cgroup.c')
0 files changed, 0 insertions, 0 deletions