android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ard Biesheuvel 81c13f3897 powerpc/archrandom: fix arch_get_random_seed_int()
commit b6afd1234cf93aa0d71b4be4788c47534905f0be upstream.

Commit 01c9348c76

  powerpc: Use hardware RNG for arch_get_random_seed_* not arch_get_random_*

updated arch_get_random_[int|long]() to be NOPs, and moved the hardware
RNG backing to arch_get_random_seed_[int|long]() instead. However, it
failed to take into account that arch_get_random_int() was implemented
in terms of arch_get_random_long(), and so we ended up with a version
of the former that is essentially a NOP as well.

Fix this by calling arch_get_random_seed_long() from
arch_get_random_seed_int() instead.

Fixes: 01c9348c76 ("powerpc: Use hardware RNG for arch_get_random_seed_* not arch_get_random_*")
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-01-26 10:01:00 +01:00
..
alpha
arc ARC: perf: Accommodate big-endian CPU 2019-10-22 09:59:43 -07:00
arm ARM: OMAP2+: Add missing put_device() call in omapdss_init_of() 2020-01-26 10:00:58 +01:00
arm64 Revert "arm64: dts: juno: add dma-ranges property" 2020-01-23 08:22:57 +01:00
c6x
csky
h8300
hexagon hexagon: work around compiler crash 2020-01-17 19:49:07 +01:00
ia64 mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
m68k
microblaze
mips MIPS: Prevent link failure with kcov instrumentation 2020-01-17 19:49:05 +01:00
nds32 asm-generic/nds32: don't redefine cacheflush primitives 2020-01-17 19:48:43 +01:00
nios2
openrisc
parisc parisc: Implement copy_thread_tls 2020-01-14 20:08:34 +01:00
powerpc powerpc/archrandom: fix arch_get_random_seed_int() 2020-01-26 10:01:00 +01:00
riscv riscv: export flush_icache_all to modules 2020-01-17 19:49:04 +01:00
s390 s390/setup: Fix secure ipl message 2020-01-23 08:22:38 +01:00
sh mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
sparc sparc64: implement ioremap_uc 2019-12-13 08:42:17 +01:00
um um: virtio_uml: Disallow modular build 2020-01-23 08:22:57 +01:00
unicore32
x86 x86/resctrl: Fix potential memory leak 2020-01-23 08:22:38 +01:00
xtensa xtensa: Implement copy_thread_tls 2020-01-14 20:08:35 +01:00
.gitignore
Kconfig