summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorMinu Jin <s9430939@naver.com>2026-02-05 11:16:20 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-07 13:05:14 +0100
commit54911107352dfe04b56828dd9f81fd570c1b76b0 (patch)
tree773193d724010724ec0d7d639273bc421da6060d /rust/alloc/collections/git@git.tavy.me:linux.git
parentad3521dc9c2f9b369f57de1bbcc14f85458a3828 (diff)
staging: most: video: fix potential race in list iteration
There is a pattern in the loops where the lock is dropped to call a specific function and then re-acquired. The list can be exposed during this short gap, creating a potential race condition. This patch fixes the problem by replacing the list head with a local free list using list_replace_init(), instead of using the lock/unlock pattern in the loop. Signed-off-by: Minu Jin <s9430939@naver.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/20260205021620.1165137-1-s9430939@naver.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions