Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1547779 > unrolled thread

[PATCH 7/8] random: remove noop function call to xfer_secondary_pool

Started byStephan Müller <smueller@chronox.de>
First post2016-12-27 23:50 +0100
Last post2016-12-27 23:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 7/8] random: remove noop function call to xfer_secondary_pool Stephan Müller <smueller@chronox.de> - 2016-12-27 23:50 +0100

#1547779 — [PATCH 7/8] random: remove noop function call to xfer_secondary_pool

FromStephan Müller <smueller@chronox.de>
Date2016-12-27 23:50 +0100
Subject[PATCH 7/8] random: remove noop function call to xfer_secondary_pool
Message-ID<sT8Jb-86X-17@gated-at.bofh.it>
Since the introduction of the ChaCha20 DRNG, extract_entropy is only
invoked with the input_pool. For this entropy pool, xfer_secondary_pool
is a no-op and can therefore be safely removed.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
---
 drivers/char/random.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/char/random.c b/drivers/char/random.c
index 89d67c0..7b72a01 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1417,7 +1417,6 @@ static ssize_t extract_entropy(struct entropy_store *r, void *buf,
 	}
 
 	trace_extract_entropy(r->name, nbytes, ENTROPY_BITS(r), _RET_IP_);
-	xfer_secondary_pool(r, nbytes);
 	nbytes = account(r, nbytes, min, reserved);
 
 	return _extract_entropy(r, buf, nbytes, fips_enabled);
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web