Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61957
b: refs/heads/master
c: 491c021
h: refs/heads/master
i:
  61955: ed0aae2
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jul 20, 2007
1 parent 4ec7f1d commit 42007f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 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: fb3abee69de583180348b9029378e31574c31cfd
refs/heads/master: 491c021e0beafe4146f6a1c9a1c58bd0fb2a42d0
20 changes: 11 additions & 9 deletions trunk/drivers/usb/misc/ldusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,17 @@ static void ld_usb_interrupt_in_callback(struct urb *urb)
struct ld_usb *dev = urb->context;
size_t *actual_buffer;
unsigned int next_ring_head;
int status = urb->status;
int retval;

if (urb->status) {
if (urb->status == -ENOENT ||
urb->status == -ECONNRESET ||
urb->status == -ESHUTDOWN) {
if (status) {
if (status == -ENOENT ||
status == -ECONNRESET ||
status == -ESHUTDOWN) {
goto exit;
} else {
dbg_info(&dev->intf->dev, "%s: nonzero status received: %d\n",
__FUNCTION__, urb->status);
__FUNCTION__, status);
spin_lock(&dev->rbsl);
goto resubmit; /* maybe we can recover */
}
Expand Down Expand Up @@ -275,14 +276,15 @@ static void ld_usb_interrupt_in_callback(struct urb *urb)
static void ld_usb_interrupt_out_callback(struct urb *urb)
{
struct ld_usb *dev = urb->context;
int status = urb->status;

/* sync/async unlink faults aren't errors */
if (urb->status && !(urb->status == -ENOENT ||
urb->status == -ECONNRESET ||
urb->status == -ESHUTDOWN))
if (status && !(status == -ENOENT ||
status == -ECONNRESET ||
status == -ESHUTDOWN))
dbg_info(&dev->intf->dev,
"%s - nonzero write interrupt status received: %d\n",
__FUNCTION__, urb->status);
__FUNCTION__, status);

dev->interrupt_out_busy = 0;
wake_up_interruptible(&dev->write_wait);
Expand Down

0 comments on commit 42007f1

Please sign in to comment.