Commit 8c08da78 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fix GFP flags for usb audio driver.

parent ee4c95a2
......@@ -914,7 +914,7 @@ static void usbin_completed(struct urb *urb)
if (!usbin_retire_desc(u, urb) &&
u->flags & FLG_RUNNING &&
!usbin_prepare_desc(u, urb) &&
(suret = usb_submit_urb(urb, GFP_KERNEL)) == 0) {
(suret = usb_submit_urb(urb, GFP_ATOMIC)) == 0) {
u->flags |= mask;
} else {
u->flags &= ~(mask | FLG_RUNNING);
......@@ -980,7 +980,7 @@ static void usbin_sync_completed(struct urb *urb)
if (!usbin_sync_retire_desc(u, urb) &&
u->flags & FLG_RUNNING &&
!usbin_sync_prepare_desc(u, urb) &&
(suret = usb_submit_urb(urb, GFP_KERNEL)) == 0) {
(suret = usb_submit_urb(urb, GFP_ATOMIC)) == 0) {
u->flags |= mask;
} else {
u->flags &= ~(mask | FLG_RUNNING);
......@@ -1274,7 +1274,7 @@ static void usbout_completed(struct urb *urb)
if (!usbout_retire_desc(u, urb) &&
u->flags & FLG_RUNNING &&
!usbout_prepare_desc(u, urb) &&
(suret = usb_submit_urb(urb, GFP_KERNEL)) == 0) {
(suret = usb_submit_urb(urb, GFP_ATOMIC)) == 0) {
u->flags |= mask;
} else {
u->flags &= ~(mask | FLG_RUNNING);
......@@ -1347,7 +1347,7 @@ static void usbout_sync_completed(struct urb *urb)
if (!usbout_sync_retire_desc(u, urb) &&
u->flags & FLG_RUNNING &&
!usbout_sync_prepare_desc(u, urb) &&
(suret = usb_submit_urb(urb, GFP_KERNEL)) == 0) {
(suret = usb_submit_urb(urb, GFP_ATOMIC)) == 0) {
u->flags |= mask;
} else {
u->flags &= ~(mask | FLG_RUNNING);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment