summaryrefslogtreecommitdiff
path: root/Makefile
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-26 08:36:37 +0200
commitf7bf6ac324290ccd193e7d9afdef0f9fa228de48 (patch)
tree690f21abcac61ef38f2fa8fe0c72bd3dce8ea1da /Makefile
parent71d2d4790cbd4052d5f7f504d347088d9c242a4b (diff)
usb: cdc-wdm: Fix a sleep-in-atomic-context bug in service_outstanding_interrupt()
commit 6e22e3af7bb3a7b9dc53cb4687659f6e63fca427 upstream. 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 'Makefile')
0 files changed, 0 insertions, 0 deletions