diff options
| -rw-r--r-- | drivers/char/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 63e19ba56bbe..6035ab8d5ef7 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
| @@ -941,7 +941,7 @@ void get_random_bytes(void *buf, int nbytes) | |||
| 941 | if (!arch_get_random_long(&v)) | 941 | if (!arch_get_random_long(&v)) |
| 942 | break; | 942 | break; |
| 943 | 943 | ||
| 944 | memcpy(buf, &v, chunk); | 944 | memcpy(p, &v, chunk); |
| 945 | p += chunk; | 945 | p += chunk; |
| 946 | nbytes -= chunk; | 946 | nbytes -= chunk; |
| 947 | } | 947 | } |
