1 From 6ce86cb5cf06541cd5aad70fe8494b07b22c247e Mon Sep 17 00:00:00 2001
2 From: Matthias Schiffer <matthias.schiffer@tq-group.com>
3 Date: Wed, 27 Jan 2021 16:10:32 +0100
4 Subject: [PATCH] rngd_jitter: fix O_NONBLOCK setting for entropy pipe
6 A pointer was passed to fcntl instead of the flags variable, setting
9 Signed-off-by: Matthias Schiffer <matthias.schiffer@tq-group.com>
12 1 file changed, 1 insertion(+), 1 deletion(-)
14 diff --git a/rngd_jitter.c b/rngd_jitter.c
15 index 32bac53..25b3543 100644
18 @@ -465,7 +465,7 @@ int init_jitter_entropy_source(struct rng *ent_src)
20 flags = fcntl(pipefds[0], F_GETFL, 0);
22 - fcntl(pipefds[0], F_SETFL, &flags);
23 + fcntl(pipefds[0], F_SETFL, flags);
25 if (ent_src->rng_options[JITTER_OPT_USE_AES].int_val) {