Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'v6.1-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

Pull crypto fix from Herbert Xu:
"This fixes an issue exposed by the recent change to feed untrusted
sources into /dev/random"

* tag 'v6.1-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
hwrng: bcm2835 - use hwrng_msleep() instead of cpu_relax()

+1 -1
+1 -1
drivers/char/hw_random/bcm2835-rng.c
··· 71 71 while ((rng_readl(priv, RNG_STATUS) >> 24) == 0) { 72 72 if (!wait) 73 73 return 0; 74 - cpu_relax(); 74 + hwrng_msleep(rng, 1000); 75 75 } 76 76 77 77 num_words = rng_readl(priv, RNG_STATUS) >> 24;