aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 0474cac4a84e..7f5271272f91 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -794,7 +794,7 @@ static void extract_buf(struct entropy_store *r, __u8 *out)
794 794
795 buf[0] ^= buf[3]; 795 buf[0] ^= buf[3];
796 buf[1] ^= buf[4]; 796 buf[1] ^= buf[4];
797 buf[0] ^= rol32(buf[3], 16); 797 buf[2] ^= rol32(buf[2], 16);
798 memcpy(out, buf, EXTRACT_SIZE); 798 memcpy(out, buf, EXTRACT_SIZE);
799 memset(buf, 0, sizeof(buf)); 799 memset(buf, 0, sizeof(buf));
800} 800}