diff options
| author | 2026-02-05 11:16:20 +0900 | |
|---|---|---|
| committer | 2026-02-07 13:05:14 +0100 | |
| commit | 54911107352dfe04b56828dd9f81fd570c1b76b0 (patch) | |
| tree | 773193d724010724ec0d7d639273bc421da6060d /include/linux/hsi/ssh:/git@git.zx2c4.com | |
| parent | staging: rtl8723bs: constify _action_public_str array (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 'include/linux/hsi/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
