[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-24
Subject:    [PATCH] usb-uhci.c: wrong sign comparison in status check
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2006-02-17 22:03:09
Message-ID: 200602172203.k1HM39ZS031149 () hera ! kernel ! org
[Download RAW message or body]

commit 755e07d6df5fbac88b29570fa74a612a2391088d
tree 251bcf4a36a8a9ed4c1761e9db16d10ae7080bb3
parent db779301398706cb200a27dde9876a895903a353
author Guennadi Liakhovetski <gl@dsa-ac.de> Fri, 20 Jan 2006 09:33:26 +0100
committer Willy Tarreau <willy@alpha.(none)> Mon, 23 Jan 2006 23:54:12 +0100

[PATCH] usb-uhci.c: wrong sign comparison in status check

urb->status should be compared to -ECONNRESET and not ECONNRESET.

Signed-off-by Guennadi Liakhovetski <g.liakhovetski@gmx.de>

 drivers/usb/host/usb-uhci.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/usb-uhci.c b/drivers/usb/host/usb-uhci.c
index a268ed3..8699463 100644
--- a/drivers/usb/host/usb-uhci.c
+++ b/drivers/usb/host/usb-uhci.c
@@ -2491,7 +2491,7 @@ _static int process_interrupt (uhci_t *s
 			((urb_priv_t*)urb->hcpriv)->flags=0;		       			
 		}
 		
-		if ((urb->status != -ECONNABORTED) && (urb->status != ECONNRESET) &&
+		if ((urb->status != -ECONNABORTED) && (urb->status != -ECONNRESET) &&
 			    (urb->status != -ENOENT)) {
 
 			urb->status = -EINPROGRESS;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-24" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic