mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
USB: storage: fix a resume path GFP_NOIO must be used
In the resume path of a block driver GFP_NOIO must be used to avoid a possible deadlock. The onetouch subdriver of storage violates the requirement. Signed-off-by: Oliver Neukum <oliver@neukum.org> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
7fa07729e4
commit
e5dc8ae121
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ static void usb_onetouch_pm_hook(struct us_data *us, int action)
|
|||
usb_kill_urb(onetouch->irq);
|
||||
break;
|
||||
case US_RESUME:
|
||||
if (usb_submit_urb(onetouch->irq, GFP_KERNEL) != 0)
|
||||
if (usb_submit_urb(onetouch->irq, GFP_NOIO) != 0)
|
||||
dev_err(&onetouch->irq->dev->dev,
|
||||
"usb_submit_urb failed\n");
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue