Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232216
b: refs/heads/master
c: fd01ad9
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Mauro Carvalho Chehab committed Jan 19, 2011
1 parent 0b25301 commit 11e5785
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: 36fd97884daf4e30b556a6c59b58db19a06d58af
refs/heads/master: fd01ad98945073faeb25391489caef4844f265c4
13 changes: 7 additions & 6 deletions trunk/drivers/media/video/tlg2300/pd-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,19 +512,20 @@ int alloc_bulk_urbs_generic(struct urb **urb_array, int num,
int buf_size, gfp_t gfp_flags,
usb_complete_t complete_fn, void *context)
{
struct urb *urb;
void *mem;
int i;
int i = 0;

for (i = 0; i < num; i++) {
urb = usb_alloc_urb(0, gfp_flags);
for (; i < num; i++) {
void *mem;
struct urb *urb = usb_alloc_urb(0, gfp_flags);
if (urb == NULL)
return i;

mem = usb_alloc_coherent(udev, buf_size, gfp_flags,
&urb->transfer_dma);
if (mem == NULL)
if (mem == NULL) {
usb_free_urb(urb);
return i;
}

usb_fill_bulk_urb(urb, udev, usb_rcvbulkpipe(udev, ep_addr),
mem, buf_size, complete_fn, context);
Expand Down

0 comments on commit 11e5785

Please sign in to comment.