You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/05/04 14:32:36 UTC
[incubator-nuttx] 02/05: Fix null pointer reference in x86_64 rng
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 19afc57eefa662cc375e267008dd5d7515a4d107
Author: Brennan Ashton <ba...@brennanashton.com>
AuthorDate: Wed Apr 29 19:54:58 2020 -0700
Fix null pointer reference in x86_64 rng
Signed-off-by: Brennan Ashton <ba...@brennanashton.com>
---
arch/x86_64/src/intel64/intel64_rng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86_64/src/intel64/intel64_rng.c b/arch/x86_64/src/intel64/intel64_rng.c
index 3c65cc0..23bb1e1 100644
--- a/arch/x86_64/src/intel64/intel64_rng.c
+++ b/arch/x86_64/src/intel64/intel64_rng.c
@@ -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();
}