Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303656
b: refs/heads/master
c: 12a98b2
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Apr 30, 2012
1 parent 3f2bb0a commit 8f6a572
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 880bca3a2a6f159d7453e0cbcbfe2f1d8204d907
refs/heads/master: 12a98b2bd8050b3cf28b50da612c484cdf174368
4 changes: 4 additions & 0 deletions trunk/drivers/usb/class/cdc-wdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ static ssize_t wdm_write
r = usb_autopm_get_interface(desc->intf);
if (r < 0) {
kfree(buf);
rv = usb_translate_errors(r);
goto outnp;
}

Expand All @@ -383,6 +384,7 @@ static ssize_t wdm_write

if (r < 0) {
kfree(buf);
rv = r;
goto out;
}

Expand Down Expand Up @@ -412,6 +414,7 @@ static ssize_t wdm_write
kfree(buf);
clear_bit(WDM_IN_USE, &desc->flags);
dev_err(&desc->intf->dev, "Tx URB error: %d\n", rv);
rv = usb_translate_errors(rv);
} else {
dev_dbg(&desc->intf->dev, "Tx URB has been submitted index=%d",
req->wIndex);
Expand Down Expand Up @@ -593,6 +596,7 @@ static int wdm_open(struct inode *inode, struct file *file)
desc->count--;
dev_err(&desc->intf->dev,
"Error submitting int urb - %d\n", rv);
rv = usb_translate_errors(rv);
}
} else {
rv = 0;
Expand Down

0 comments on commit 8f6a572

Please sign in to comment.