Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316997
b: refs/heads/master
c: fe2072c
h: refs/heads/master
i:
  316995: 3cd1de2
v: v3
  • Loading branch information
Hans de Goede authored and Greg Kroah-Hartman committed Jul 9, 2012
1 parent 378af3a commit e26ab66
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: c5cf9212a368d88fe1e25797699b167f6daa64a5
refs/heads/master: fe2072cc1768b0f979195acf19b8ccd381e541c3
10 changes: 9 additions & 1 deletion trunk/drivers/usb/core/hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,15 @@ int usb_hcd_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
&& !(urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP)) {
if (hcd->self.uses_dma) {
if (urb->num_sgs) {
int n = dma_map_sg(
int n;

/* We don't support sg for isoc transfers ! */
if (usb_endpoint_xfer_isoc(&urb->ep->desc)) {
WARN_ON(1);
return -EINVAL;
}

n = dma_map_sg(
hcd->self.controller,
urb->sg,
urb->num_sgs,
Expand Down

0 comments on commit e26ab66

Please sign in to comment.