lkml.org 
[lkml]   [2010]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] HVSI: Fix apparently backwards args to time_before() in hvsi.c

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---

no appropriate subsystem maintainer listed in MAINTAINERS.

diff --git a/drivers/char/hvsi.c b/drivers/char/hvsi.c
index 793b236..71c0fcd 100644
--- a/drivers/char/hvsi.c
+++ b/drivers/char/hvsi.c
@@ -711,7 +711,7 @@ static void hvsi_drain_input(struct hvsi_struct *hp)
uint8_t buf[HVSI_MAX_READ] __ALIGNED__;
unsigned long end_jiffies = jiffies + HVSI_TIMEOUT;

- while (time_before(end_jiffies, jiffies))
+ while (time_before(jiffies, end_jiffies))
if (0 == hvsi_read(hp, buf, HVSI_MAX_READ))
break;
}
rday
--

========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.

Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================

\
 
 \ /
  Last update: 2010-01-01 18:31    [W:0.053 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site