Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165023
b: refs/heads/master
c: 2912282
h: refs/heads/master
i:
  165021: 7ba9804
  165019: 9eef223
  165015: 82309bf
  165007: 5014946
  164991: 63c4775
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Sep 23, 2009
1 parent 3a96432 commit 61e8a60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a448c9d8c58ff7d3f8cc2a8f835065460099b22d
refs/heads/master: 2912282c06f219cf1634a624653c445329b37acf
4 changes: 2 additions & 2 deletions trunk/drivers/usb/core/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,11 +914,11 @@ int usb_buffer_map_sg(const struct usb_device *dev, int is_in,
|| !(bus = dev->bus)
|| !(controller = bus->controller)
|| !controller->dma_mask)
return -1;
return -EINVAL;

/* FIXME generic api broken like pci, can't report errors */
return dma_map_sg(controller, sg, nents,
is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE);
is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE) ? : -ENOMEM;
}
EXPORT_SYMBOL_GPL(usb_buffer_map_sg);

Expand Down

0 comments on commit 61e8a60

Please sign in to comment.