Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174976
b: refs/heads/master
c: ec412b9
h: refs/heads/master
v: v3
  • Loading branch information
Andre Herms authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 0421c6b commit bb5f5dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: 7723de7e19b744144975a09c81777ec0f14ac5b3
refs/heads/master: ec412b92dbe3ea839716853eea058d1bcc5e6ca4
14 changes: 10 additions & 4 deletions trunk/drivers/usb/class/usbtmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,10 +562,16 @@ static ssize_t usbtmc_write(struct file *filp, const char __user *buf,
n_bytes = roundup(12 + this_part, 4);
memset(buffer + 12 + this_part, 0, n_bytes - (12 + this_part));

retval = usb_bulk_msg(data->usb_dev,
usb_sndbulkpipe(data->usb_dev,
data->bulk_out),
buffer, n_bytes, &actual, USBTMC_TIMEOUT);
do {
retval = usb_bulk_msg(data->usb_dev,
usb_sndbulkpipe(data->usb_dev,
data->bulk_out),
buffer, n_bytes,
&actual, USBTMC_TIMEOUT);
if (retval != 0)
break;
n_bytes -= actual;
} while (n_bytes);

data->bTag_last_write = data->bTag;
data->bTag++;
Expand Down

0 comments on commit bb5f5dc

Please sign in to comment.