Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208001
b: refs/heads/master
c: 4307a28
h: refs/heads/master
i:
  207999: 681fdc8
v: v3
  • Loading branch information
Andrea Righi authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent 5ac9710 commit 2e1529a
Show file tree
Hide file tree
Showing 3 changed files with 8 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: e10fa4787f1fb9c8738dff955c272f30b7b63134
refs/heads/master: 4307a28eb0128417d9a2b9d858d2bce70ee5b383
5 changes: 5 additions & 0 deletions trunk/drivers/usb/core/hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,11 @@ static int hcd_alloc_coherent(struct usb_bus *bus,
{
unsigned char *vaddr;

if (*vaddr_handle == NULL) {
WARN_ON_ONCE(1);
return -EFAULT;
}

vaddr = hcd_buffer_alloc(bus, size + sizeof(vaddr),
mem_flags, dma_handle);
if (!vaddr)
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/usb/host/ehci-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,8 @@ static int ehci_init(struct usb_hcd *hcd)
ehci->command = temp;

/* Accept arbitrarily long scatter-gather lists */
hcd->self.sg_tablesize = ~0;
if (!(hcd->driver->flags & HCD_LOCAL_MEM))
hcd->self.sg_tablesize = ~0;
return 0;
}

Expand Down

0 comments on commit 2e1529a

Please sign in to comment.