linux/drivers/staging/rts5208
Jia-Ju Bai 498c4b4e9c staging: rt5208: Fix a sleep-in-atomic bug in xd_copy_page
The driver may sleep under a spin lock, and the function call path is:
rtsx_exclusive_enter_ss (acquire the lock by spin_lock)
  rtsx_enter_ss
    rtsx_power_off_card
      xd_cleanup_work
        xd_delay_write
          xd_finish_write
            xd_copy_page
              wait_timeout
                schedule_timeout --> may sleep

To fix it, "wait_timeout" is replaced with mdelay in xd_copy_page.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-06 16:16:10 +02:00
..
general.c
general.h
Kconfig
Makefile
ms.c staging: rts5208: ms.c fixed checkpatch warning - using __func__ instead of hardcoded name 2017-04-08 17:05:59 +02:00
ms.h staging: rts5208: ms.h: Parenthesis alignment 2016-10-16 10:27:10 +02:00
rtsx_card.c staging: rts5208: Comparison to NULL 2016-10-16 10:27:02 +02:00
rtsx_card.h staging: rts5208: Unecessary parantheses 2016-10-16 10:26:58 +02:00
rtsx_chip.c staging: rts5208: Replace a bit shift by a use of BIT. 2017-03-23 14:25:33 +01:00
rtsx_chip.h staging: rts5208: rtxs_chip.h: Long lines 2016-10-16 10:27:18 +02:00
rtsx_scsi.c staging: rts5208: rtsx_scsi.h: Long lines 2016-10-16 10:27:17 +02:00
rtsx_scsi.h staging: rts5208: Alignment fix 2016-10-16 10:26:46 +02:00
rtsx_sys.h staging: rts5208: Unnecessary parentheses cleanup 2016-10-16 10:26:45 +02:00
rtsx_transport.c staging: rts5208: Remove unnecessary cast on void pointer 2017-03-09 18:50:05 +01:00
rtsx_transport.h staging: rts5208: Alignment fixes 2016-10-16 10:26:44 +02:00
rtsx.c staging: rts5208: remove unncessary result set and check, just return SUCCESS 2017-02-03 13:01:36 +01:00
rtsx.h staging: rts5208: Add space around operator 2016-10-16 10:26:53 +02:00
sd.c rts5208: Fix a sleep-in-atomic bug in rtsx_exclusive_enter_ss 2017-06-03 17:52:00 +09:00
sd.h staging: rts5208: sd.h: Alignment fixes 2016-10-16 10:26:36 +02:00
spi.c staging: rts5208: spi.c: Alignment fixes 2016-10-16 10:26:35 +02:00
spi.h Staging: rts5208: fix double blank line coding style issues 2016-08-21 18:37:36 +02:00
TODO
trace.c
trace.h
xd.c staging: rt5208: Fix a sleep-in-atomic bug in xd_copy_page 2017-06-06 16:16:10 +02:00
xd.h staging: rts5208: xd.h: Alignment fix 2016-10-16 10:25:01 +02:00