mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
Fix null pointer reference in x86_64 rng
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
committed by
patacongo
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user