lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 1 Jan 2010 12:28:03 -0500 (EST)
From:	"Robert P. J. Day" <rpjday@...shcourse.ca>
To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [PATCH] HVSI: Fix apparently backwards args to time_before() in
 hvsi.c


Signed-off-by: Robert P. J. Day <rpjday@...shcourse.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
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ