Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119281
b: refs/heads/master
c: f1c0a2a
h: refs/heads/master
i:
  119279: c746ae4
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Nov 20, 2008
1 parent 3fdec39 commit 950c915
Show file tree
Hide file tree
Showing 2 changed files with 5 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: ff3495052af48f7a2bf7961b131dc9e161dae19c
refs/heads/master: f1c0a2a3aff53698f4855968d576464041d49b39
5 changes: 4 additions & 1 deletion trunk/drivers/usb/mon/mon_bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,10 @@ static ssize_t mon_bin_read(struct file *file, char __user *buf,
}

if (rp->b_read >= sizeof(struct mon_bin_hdr)) {
step_len = min(nbytes, (size_t)ep->len_cap);
step_len = ep->len_cap;
step_len -= rp->b_read - sizeof(struct mon_bin_hdr);
if (step_len > nbytes)
step_len = nbytes;
offset = rp->b_out + PKT_SIZE;
offset += rp->b_read - sizeof(struct mon_bin_hdr);
if (offset >= rp->b_size)
Expand Down

0 comments on commit 950c915

Please sign in to comment.