diff options
| author | Jia-Ju Bai <[email protected]> | 2018-09-15 11:13:03 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-18 13:29:10 +0200 |
| commit | bffa9b1cc64a12f3162f79151dee56199efbc785 (patch) | |
| tree | d7a541b5324a9b1e7d168c8fdf8d6a29a31fcd5f /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 2051c6ae928ddbd4d314ba8ea89298d686ad86b7 (diff) | |
staging: dgnc: Fix a sleep-in-atomic-context bug in cls_assert_modem_signals()
The driver may sleep with holding a spinlock.
The function call path (from bottom to top) in Linux-4.17 is:
[FUNC] usleep_range
drivers/staging/dgnc/dgnc_cls.c, 391:
usleep_range in cls_assert_modem_signals
drivers/staging/dgnc/dgnc_cls.c, 449:
cls_assert_modem_signals in cls_copy_data_from_queue_to_uart
drivers/staging/dgnc/dgnc_cls.c, 406:
_raw_spin_lock_irqsave in cls_copy_data_from_queue_to_uart
To fix this bug, usleep_range() is replaced with udelay().
This bug is found by my static analysis tool DSAC.
Signed-off-by: Jia-Ju Bai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions