Fix null pointer reference in x86_64 rng
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
parent
a9871f584a
commit
19afc57eef
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue