[PATCH] tty/isicom: Fix a possible sleep-in-atomic bug in WaitTillCardIsFree

2017-12-12 Thread Jia-Ju Bai
The driver may sleep under a spinlock. The function call paths are: isicom_activate (acquire the spinlock) isicom_setup_board drop_dtr_rts WaitTillCardIsFree msleep --> may sleep isicom_set_termios isicom_config_port drop_dtr WaitTillCardIsFree msleep -->

[PATCH] tty/isicom: Fix a possible sleep-in-atomic bug in WaitTillCardIsFree

2017-12-12 Thread Jia-Ju Bai
The driver may sleep under a spinlock. The function call paths are: isicom_activate (acquire the spinlock) isicom_setup_board drop_dtr_rts WaitTillCardIsFree msleep --> may sleep isicom_set_termios isicom_config_port drop_dtr WaitTillCardIsFree msleep -->