[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210210072152.GB4493@gondor.apana.org.au>
Date: Wed, 10 Feb 2021 18:21:52 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Jan Henrik Weinstock <jan.weinstock@...h-aachen.de>
Cc: mpm@...enic.com, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hw_random/timeriomem-rng: Fix cooldown period calculation
On Mon, Feb 01, 2021 at 04:14:59PM +0100, Jan Henrik Weinstock wrote:
> Ensure cooldown period tolerance of 1% is actually accounted for.
>
> Signed-off-by: Jan Henrik Weinstock <jan.weinstock@...h-aachen.de>
> ---
>
> Before patch, if period_us was less than 100us, no extra sleep time was
> added. If it was more than 100us, only 1us extra time (and not 1%) is slept.
>
> drivers/char/hw_random/timeriomem-rng.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
BTW your patch was space corrupted so I had to apply it by hand.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists