diff options
| author | Duoming Zhou <[email protected]> | 2022-10-18 16:34:24 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-11-09 14:38:19 +0100 |
| commit | ce8cc75c7419ad54cb99437543a54c97c7446db5 (patch) | |
| tree | ba5ace7d8c7d1e9a4861ee2f86e2667ea72ab49e /scripts/gdb/linux/timerlist.py | |
| parent | a614e753e8e7f3322b560dcf6eaf44468ec22b3a (diff) | |
drivers: staging: r8188eu: Fix sleep-in-atomic-context bug in rtw_join_timeout_handler
The rtw_join_timeout_handler() is a timer handler that
runs in atomic context, but it could call msleep().
As a result, the sleep-in-atomic-context bug will happen.
The process is shown below:
(atomic context)
rtw_join_timeout_handler
_rtw_join_timeout_handler
rtw_do_join
rtw_select_and_join_from_scanned_queue
rtw_indicate_disconnect
rtw_lps_ctrl_wk_cmd
lps_ctrl_wk_hdl
LPS_Leave
LPS_RF_ON_check
msleep //sleep in atomic context
Fix by removing msleep() and replacing with mdelay().
Fixes: 15865124feed ("staging: r8188eu: introduce new core dir for RTL8188eu driver")
Signed-off-by: Duoming Zhou <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions