Dear Linux kernel code maintainer,

on rechecking the current stable kernel code, I found some places where jiffies
were compared in a way that seems to break when they wrap. For these,
I made up patches to use the macros "time_before()" or "time_after()"
that are supposed to handle wraparound correctly.

For a small part of the patches, I believe you to be the relevant kernel code
maintainer. Appended to this email you will find some lines explaining
why I decided to mail or cc: you on this (an extract of the copyright notice
or the MAINTAINERS file), followed by the patch itself. If I mailed you
in error, please drop me a short note.

I kindly ask you to approve the correctness of the patch, and pass it on to
the relevant people for inclusion into the mainline kernel.

Thanks,
Tim Schmielau ([EMAIL PROTECTED])



USB EHCI DRIVER
P:      David Brownell
M:      [EMAIL PROTECTED]
L:      [EMAIL PROTECTED]
S:      Maintained


--- linux-2.4.20-pre6/drivers/usb/hcd/ehci-hub.c        Sat Aug  3 02:39:44 2002
+++ linux-2.4.20-pre6-jfix/drivers/usb/hcd/ehci-hub.c   Wed Sep 11 12:59:43 2002
@@ -236,7 +236,7 @@
 
                /* whoever resets must GetPortStatus to complete it!! */
                if ((temp & PORT_RESET)
-                               && jiffies > ehci->reset_done [wIndex]) {
+                               && time_after(jiffies, ehci->reset_done [wIndex])) {
                        status |= 1 << USB_PORT_FEAT_C_RESET;
 
                        /* force reset to complete */



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to