Skip to content

Commit be2360e

Browse files
Sebastian Andrzej Siewiorgregkh
authored andcommitted
Revert "usb: cdc-wdm: Fix a sleep-in-atomic-context bug in service_outstanding_interrupt()"
commit e871db8 upstream. This reverts commit 6e22e3a. The bug the patch describes to, has been already fixed in commit 2df6948 ("USB: cdc-wdm: don't enable interrupts in USB-giveback") so need to this, revert it. Fixes: 6e22e3a ("usb: cdc-wdm: Fix a sleep-in-atomic-context bug in service_outstanding_interrupt()") Cc: stable <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ec6dc4b commit be2360e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/class/cdc-wdm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ static int service_outstanding_interrupt(struct wdm_device *desc)
457457

458458
set_bit(WDM_RESPONDING, &desc->flags);
459459
spin_unlock_irq(&desc->iuspin);
460-
rv = usb_submit_urb(desc->response, GFP_ATOMIC);
460+
rv = usb_submit_urb(desc->response, GFP_KERNEL);
461461
spin_lock_irq(&desc->iuspin);
462462
if (rv) {
463463
dev_err(&desc->intf->dev,

0 commit comments

Comments
 (0)