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-prev] [day] [month] [year] [list]
Date:	Mon, 9 Mar 2015 14:27:37 +0000
From:	Charles Keepax <ckeepax@...nsource.wolfsonmicro.com>
To:	Nicholas Mc Guire <hofrat@...dl.org>
Cc:	Liam Girdwood <lgirdwood@...il.com>,
	Mark Brown <broonie@...nel.org>,
	patches@...nsource.wolfsonmicro.com, alsa-devel@...a-project.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] ASoC: wm8996: ensure lower bounds of 1 for timeout

On Sun, Mar 08, 2015 at 06:02:38AM -0400, Nicholas Mc Guire wrote:
> wait_for_completion_timeout can be called with timeout == 0 due to
> msecs_to_jiffies(2) == 1 for HZ < 1000 and usecs_to_jiffies(300) == 1
> for all reasonable values of HZ, thus the following timeout /= 2; sets
> timeout to 0. This patch simply adds a lower-bounds of 1.
> 
> Signed-off-by: Nicholas Mc Guire <hofrat@...dl.org>
> ---

Acked-by: Charles Keepax <ckeepax@...nsource.wolfsonmicro.com>

Thanks,
Charles
--
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