summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2018-09-01 16:12:10 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-05 14:48:40 +0200
commit6e22e3af7bb3a7b9dc53cb4687659f6e63fca427 (patch)
treefc60e292ccb57a85d6dc205b2f55c80abbfe7d38 /scripts/gdb/linux/proc.py
parentbc8acc214d3f1cafebcbcd101a695bbac716595d (diff)
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 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions