Re: [PATCH] NCR5380: Fix a possible sleep-in-atomic bug in NCR5380_poll_politely2

From: Jia-Ju Bai
Date: Mon Dec 11 2017 - 22:50:18 EST


Thanks for your reply :)

On 2017/12/12 11:38, Finn Thain wrote:
On Tue, 12 Dec 2017, Jia-Ju Bai wrote:

From: Jia-Ju Bai <baijiaju1990@xxxxxxxxx>

The kernel module may sleep under a spinlock.
The spinlock is always taken in irq mode, and the
schedule_timeout_uninterruptible() is conditional on !irqs_disabled().

I think I ignore this check, which causes a false bug report, sorry.


Thanks,
Jia-Ju Bai