Code

irq plugin: Force 32bit wrap-around.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 1 May 2009 14:34:30 +0000 (16:34 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 1 May 2009 14:34:30 +0000 (16:34 +0200)
src/irq.c

index 38304fca58f84ef7cf98abe13675fa8abbb754c8..a7efd36fb8b5d3cb46b3b3ff497b349f8a0afe90 100644 (file)
--- a/src/irq.c
+++ b/src/irq.c
@@ -191,8 +191,10 @@ static int irq_read (void)
                        irq_value += value;
                } /* for (i) */
 
-               irq_submit (irq, irq_value);
+               /* Force 32bit wrap-around */
+               irq_submit (irq, irq_value % 4294967296ULL);
        }
+
        fclose (fh);
 
        return (0);