Module Name: src Committed By: jmcneill Date: Tue Jun 22 10:19:35 UTC 2021
Modified Files: src/sys/stand/efiboot: efirng.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/stand/efiboot/efirng.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/stand/efiboot/efirng.c diff -u src/sys/stand/efiboot/efirng.c:1.2 src/sys/stand/efiboot/efirng.c:1.3 --- src/sys/stand/efiboot/efirng.c:1.2 Thu May 14 23:09:29 2020 +++ src/sys/stand/efiboot/efirng.c Tue Jun 22 10:19:35 2021 @@ -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);