diff options
| author | Jia-Ju Bai <[email protected]> | 2017-06-05 15:30:16 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-06-06 16:16:10 +0200 |
| commit | 498c4b4e9c23855d17ecc2a108d949bb68020481 (patch) | |
| tree | 1ca886f9c22960514b49587cd018c1e602315bc0 /tools/perf/scripts/python | |
| parent | ac669251087d876d6e51eb648f98e575f0d0499d (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions