From ab6aa6cdbdef509da91ae51a9c61e8f7a6f18e52 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Wed, 3 Apr 2002 00:12:21 -0800 Subject: [PATCH] USB UHCI driver The patch ensures that uhci.c doesn't use urb->status after the completion callback if it doesn't need to. --- drivers/usb/uhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/uhci.c b/drivers/usb/uhci.c index 8275322abeeb..27a902aefcb2 100644 --- a/drivers/usb/uhci.c +++ b/drivers/usb/uhci.c @@ -2370,15 +2370,15 @@ static void uhci_call_completion(struct urb *urb) urb->dev = NULL; spin_unlock_irqrestore(&urb->lock, flags); - if (urb->complete) { + if (urb->complete) urb->complete(urb); + if (resubmit_interrupt) /* Recheck the status. The completion handler may have */ /* unlinked the resubmitting interrupt URB */ killed = (urb->status == -ENOENT || urb->status == -ECONNABORTED || urb->status == -ECONNRESET); - } if (resubmit_interrupt && !killed) { urb->dev = dev; -- 2.39.5