diff options
| author | 2026-02-01 02:11:53 +0900 | |
|---|---|---|
| committer | 2026-02-07 14:10:04 +0100 | |
| commit | 02df7c635bd3463abcd92414e32a2cb906089e72 (patch) | |
| tree | 71c88838e290f009de94faf5867963a9d5fa68f2 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | staging: rtl8723bs: remove dead debugging code in rtw_mlme_ext.c (diff) | |
staging: rtl8723bs: fix potential race in expire_timeout_chk
The expire_timeout_chk function currently do lock and unlock inside the
loop before calling rtw_free_stainfo().
This can be risky as the list might be changed
when the lock is briefly released.
To fix this, move expired sta_info entries into a local free_list while
holding the lock, and then perform the actual freeing after the lock is
released.
Signed-off-by: Minu Jin <s9430939@naver.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260131171153.3729458-1-s9430939@naver.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
