Re: [BUG] drivers/gpio: some possible sleep-in-atomic bugs

2017-12-13 Thread Andreas Larsson
On 2017-12-12 04:59, Jia-Ju Bai wrote: According to drivers/gpio/gpio-grgpio.c, the kernel module may sleep under a spinlock. The function call paths are: grgpio_remove (acquire the spinlock) gpiochip_remove gpiochip_sysfs_unregister device_unregister --> may sleep mutex_loc

[BUG] drivers/gpio: some possible sleep-in-atomic bugs

2017-12-11 Thread Jia-Ju Bai
According to drivers/gpio/gpio-grgpio.c, the kernel module may sleep under a spinlock. The function call paths are: grgpio_remove (acquire the spinlock) gpiochip_remove gpiochip_sysfs_unregister device_unregister --> may sleep mutex_lock --> may sleep grgpio_remove (acquire the