diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-09-01 11:12:10 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-05 15:48:40 +0300 |
commit | 6e22e3af7bb3a7b9dc53cb4687659f6e63fca427 (patch) | |
tree | fc60e292ccb57a85d6dc205b2f55c80abbfe7d38 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bc8acc214d3f1cafebcbcd101a695bbac716595d (diff) | |
download | linux-6e22e3af7bb3a7b9dc53cb4687659f6e63fca427.tar.xz |
usb: cdc-wdm: Fix a sleep-in-atomic-context bug in service_outstanding_interrupt()
wdm_in_callback() is a completion handler function for the USB driver.
So it should not sleep. But it calls service_outstanding_interrupt(),
which calls usb_submit_urb() with GFP_KERNEL.
To fix this bug, GFP_KERNEL is replaced with GFP_ATOMIC.
This bug is found by my static analysis tool DSAC.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions