Fix null pointer reference in x86_64 rng

Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
Brennan Ashton 2020-04-29 19:54:58 -07:00 committed by patacongo
parent a9871f584a
commit 19afc57eef
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ static ssize_t x86_rngread(struct file *filep, char *buffer, size_t buflen)
{
unsigned short temp = 0;
while (_rdrand16_step((unsigned short *)temp))
while (_rdrand16_step(&temp))
{
sched_yield();
}