Skip to content

Commit bbb8ceb

Browse files
committed
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()
2 parents 9abf231 + 96cb9d0 commit bbb8ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/hw_random/bcm2835-rng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static int bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max,
7171
while ((rng_readl(priv, RNG_STATUS) >> 24) == 0) {
7272
if (!wait)
7373
return 0;
74-
cpu_relax();
74+
hwrng_msleep(rng, 1000);
7575
}
7676

7777
num_words = rng_readl(priv, RNG_STATUS) >> 24;

0 commit comments

Comments
 (0)