aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/core/hcd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 297c92e4bf8d..12742f152f43 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -1327,7 +1327,7 @@ static int map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
1327 urb->setup_dma)) 1327 urb->setup_dma))
1328 return -EAGAIN; 1328 return -EAGAIN;
1329 urb->transfer_flags |= URB_SETUP_MAP_SINGLE; 1329 urb->transfer_flags |= URB_SETUP_MAP_SINGLE;
1330 } else if (hcd->driver->flags & HCD_LOCAL_MEM) 1330 } else if (hcd->driver->flags & HCD_LOCAL_MEM) {
1331 ret = hcd_alloc_coherent( 1331 ret = hcd_alloc_coherent(
1332 urb->dev->bus, mem_flags, 1332 urb->dev->bus, mem_flags,
1333 &urb->setup_dma, 1333 &urb->setup_dma,
@@ -1337,6 +1337,7 @@ static int map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
1337 if (ret) 1337 if (ret)
1338 return ret; 1338 return ret;
1339 urb->transfer_flags |= URB_SETUP_MAP_LOCAL; 1339 urb->transfer_flags |= URB_SETUP_MAP_LOCAL;
1340 }
1340 } 1341 }
1341 1342
1342 dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; 1343 dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE;