Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200677
b: refs/heads/master
c: 64d6587
h: refs/heads/master
i:
  200675: d2ecddf
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Jun 30, 2010
1 parent 0c87028 commit eb634be
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 3b49d2315c119b9ae8a9a33b07d4eb7d194c01a7
refs/heads/master: 64d65872f96e2a754caa12ef48949c314384bd9f
7 changes: 5 additions & 2 deletions trunk/drivers/usb/core/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,11 @@ int usb_sg_init(struct usb_sg_request *io, struct usb_device *dev,
/* A length of zero means transfer the whole sg list */
len = length;
if (len == 0) {
for_each_sg(sg, sg, nents, i)
len += sg->length;
struct scatterlist *sg2;
int j;

for_each_sg(sg, sg2, nents, j)
len += sg2->length;
}
} else {
/*
Expand Down

0 comments on commit eb634be

Please sign in to comment.