All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: fix mistake in arch_get_random_seed_int()
@ 2019-03-10 17:33 Jon DeVree
  0 siblings, 0 replies; only message in thread
From: Jon DeVree @ 2019-03-10 17:33 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Jon DeVree

Way back in v4.3 the PPC hardware RNG stuff was changed to only provide
the RNG seed functions, but this line was missed during the change.

Fixes: 01c9348c7620 ("powerpc: Use hardware RNG for arch_get_random_seed_* not arch_get_random_*")
Signed-off-by: Jon DeVree <nuxi@vault24.org>
---
 arch/powerpc/include/asm/archrandom.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/archrandom.h b/arch/powerpc/include/asm/archrandom.h
index 9c63b596e6ce..a09595f00cab 100644
--- a/arch/powerpc/include/asm/archrandom.h
+++ b/arch/powerpc/include/asm/archrandom.h
@@ -28,7 +28,7 @@ static inline int arch_get_random_seed_int(unsigned int *v)
 	unsigned long val;
 	int rc;
 
-	rc = arch_get_random_long(&val);
+	rc = arch_get_random_seed_long(&val);
 	if (rc)
 		*v = val;
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-11 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-10 17:33 [PATCH] powerpc: fix mistake in arch_get_random_seed_int() Jon DeVree

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.