diff options
Diffstat (limited to 'drivers')
-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 6da0696c963..df4eb6ded57 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -934,7 +934,7 @@ void get_random_bytes(void *buf, int nbytes) if (!arch_get_random_long(&v)) break; - memcpy(buf, &v, chunk); + memcpy(p, &v, chunk); p += chunk; nbytes -= chunk; } |