aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/core/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 43ee943d757a..30dd2636f262 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -914,11 +914,11 @@ int usb_buffer_map_sg(const struct usb_device *dev, int is_in,
914 || !(bus = dev->bus) 914 || !(bus = dev->bus)
915 || !(controller = bus->controller) 915 || !(controller = bus->controller)
916 || !controller->dma_mask) 916 || !controller->dma_mask)
917 return -1; 917 return -EINVAL;
918 918
919 /* FIXME generic api broken like pci, can't report errors */ 919 /* FIXME generic api broken like pci, can't report errors */
920 return dma_map_sg(controller, sg, nents, 920 return dma_map_sg(controller, sg, nents,
921 is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE); 921 is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE) ? : -ENOMEM;
922} 922}
923EXPORT_SYMBOL_GPL(usb_buffer_map_sg); 923EXPORT_SYMBOL_GPL(usb_buffer_map_sg);
924 924