diff options
author | Duoming Zhou <duoming@zju.edu.cn> | 2023-01-18 22:10:00 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-19 17:22:38 +0100 |
commit | 70fae37a09268455b8ab4f64647086b61da6f39c (patch) | |
tree | 12fcddc6a5e89c1c5f0e8fd8f2ed4ac4e6e1d36c /io_uring/uring_cmd.h | |
parent | af35dbad4a4af023536c17d9bc91a77171bc35df (diff) | |
download | linux-70fae37a09268455b8ab4f64647086b61da6f39c.tar.gz linux-70fae37a09268455b8ab4f64647086b61da6f39c.tar.bz2 linux-70fae37a09268455b8ab4f64647086b61da6f39c.zip |
Revert "char: pcmcia: cm4000_cs: Replace mdelay with usleep_range in set_protocol"
This reverts commit be826ada52f1fcabed5b5217c94609ebf5967211.
The function monitor_card() is a timer handler that runs in an
atomic context, but it calls usleep_range() that can sleep.
As a result, the sleep-in-atomic-context bugs will happen.
The process is shown below:
(atomic context)
monitor_card()
set_protocol()
usleep_range() //sleep
The origin commit c1986ee9bea3 ("[PATCH] New Omnikey Cardman
4000 driver") works fine.
Fixes: be826ada52f1 ("char: pcmcia: cm4000_cs: Replace mdelay with usleep_range in set_protocol")
Signed-off-by: Duoming Zhou <duoming@zju.edu.cn>
Link: https://lore.kernel.org/r/20230118141000.5580-1-duoming@zju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'io_uring/uring_cmd.h')
0 files changed, 0 insertions, 0 deletions