diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2021-06-22 10:19:35 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2021-06-22 10:19:35 +0000 |
| commit | 1d174b1caa40fff361f09a319a93fca60c3050fd (patch) | |
| tree | f80916999b6437ba037cd3ef21b252111d115164 /sys/stand | |
| parent | 25a56f357506bc6be3c1c5aa20cd867c016a365f (diff) | |
efirng: fix va_num arg to uefi_call_wrapper for GetRNG calls
As far as I can tell this param isn't actually used, but it is supposed to
be the number of arguments passed to the called method.
Diffstat (limited to 'sys/stand')
| -rw-r--r-- | sys/stand/efiboot/efirng.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/stand/efiboot/efirng.c b/sys/stand/efiboot/efirng.c index ff8566fb503..bc51fa45f50 100644 --- a/sys/stand/efiboot/efirng.c +++ b/sys/stand/efiboot/efirng.c @@ -1,4 +1,4 @@ -/* $NetBSD: efirng.c,v 1.2 2020/05/14 23:09:29 jmcneill Exp $ */ +/* $NetBSD: efirng.c,v 1.3 2021/06/22 10:19:35 jmcneill Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -121,14 +121,14 @@ efi_rng(void *buf, UINTN len) if (!efi_rng_available()) return EIO; - status = uefi_call_wrapper(rng->GetRNG, 3, rng, &RngAlgorithmRawGuid, + status = uefi_call_wrapper(rng->GetRNG, 4, rng, &RngAlgorithmRawGuid, len, buf); if (status == EFI_UNSUPPORTED) { /* * Fall back to any supported RNG `algorithm' even * though we would prefer raw samples. */ - status = uefi_call_wrapper(rng->GetRNG, 3, rng, NULL, len, buf); + status = uefi_call_wrapper(rng->GetRNG, 4, rng, NULL, len, buf); } if (EFI_ERROR(status)) { DPRINT(L"efirng: GetRNG: %r\n", status); |
