lkml.org 
[lkml]   [2013]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Resend: [PATCH 2/2] s390: provide hardware randomness from zcrypt card to /dev/random
From
Date
On Wed, 2013-09-04 at 10:48 +0200, Torsten Duwe wrote:
[]
> +++ b/drivers/s390/crypto/zcrypt_api.c

> @@ -1141,6 +1144,36 @@ static struct hwrng zcrypt_rng_dev = {
][
> +static int zcrypt_hwrng_fillfn(void *unused)
> +{
> + long rc;
> +
> + while (!kthread_should_stop()) {
> + rc = zcrypt_rng((char *)zcrypt_rng_buffer);
> + if (rc == -ENODEV || rc == -EINVAL || rc == -ENOMEM) {
> + pr_err("zcrypt_rng unavailable: %ld", rc);

please add terminating newlines

pr_err("zcrypt_rng unavailable: %ld\n", rc);

etc...





\
 
 \ /
  Last update: 2013-09-11 03:01    [W:0.064 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site