[PATCH] oss: Fix a sleep-in-atomic bug in midi_outc

2017-06-18 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: midi_outc (acquire the lock by spin_lock_irqsave) oss_broken_sleep_on schedule_timeout --> may sleep To fix it, the lock is released before oss_broken_sleep_on, and the lock is acquired again after this function.

[PATCH] oss: Fix a sleep-in-atomic bug in midi_outc

2017-06-18 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: midi_outc (acquire the lock by spin_lock_irqsave) oss_broken_sleep_on schedule_timeout --> may sleep To fix it, the lock is released before oss_broken_sleep_on, and the lock is acquired again after this function.

[PATCH] oss: Fix a sleep-in-atomic bug in midi_outc

2017-06-01 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: midi_outc (acquire the lock by spin_lock_irqsave) oss_broken_sleep_on schedule_timeout --> may sleep To fix it, the lock is released before oss_broken_sleep_on, and the lock is acquired again after this function.

[PATCH] oss: Fix a sleep-in-atomic bug in midi_outc

2017-06-01 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: midi_outc (acquire the lock by spin_lock_irqsave) oss_broken_sleep_on schedule_timeout --> may sleep To fix it, the lock is released before oss_broken_sleep_on, and the lock is acquired again after this function.