Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107641
b: refs/heads/master
c: 580da34
h: refs/heads/master
i:
  107639: 9a13dce
v: v3
  • Loading branch information
Alan Stern authored and Linus Torvalds committed Aug 5, 2008
1 parent 075c08b commit 9586f80
Show file tree
Hide file tree
Showing 2 changed files with 2 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: ca5de404ff036a29b25e9a83f6919c9f606c5841
refs/heads/master: 580da34847488b404218d1d7f53b156f245f5555
2 changes: 1 addition & 1 deletion trunk/drivers/usb/core/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ int usb_sg_init(struct usb_sg_request *io, struct usb_device *dev,
if (io->entries <= 0)
return io->entries;

io->count = io->entries;
io->urbs = kmalloc(io->entries * sizeof *io->urbs, mem_flags);
if (!io->urbs)
goto nomem;
Expand Down Expand Up @@ -458,6 +457,7 @@ int usb_sg_init(struct usb_sg_request *io, struct usb_device *dev,
io->urbs[--i]->transfer_flags &= ~URB_NO_INTERRUPT;

/* transaction state */
io->count = io->entries;
io->status = 0;
io->bytes = 0;
init_completion(&io->complete);
Expand Down

0 comments on commit 9586f80

Please sign in to comment.