svn commit: r338461 - head/sys/dev/efidev

Konstantin Belousov kib at FreeBSD.org
Tue Sep 4 19:28:47 UTC 2018


Author: kib
Date: Tue Sep  4 19:28:46 2018
New Revision: 338461
URL: https://svnweb.freebsd.org/changeset/base/338461

Log:
  Assign to correct structure members.
  
  Reported by:	cem from Coverity
  Sponsored by:	The FreeBSD Foundation
  MFC after:	6 days
  Approved by:	re (gjb)

Modified:
  head/sys/dev/efidev/efirt.c

Modified: head/sys/dev/efidev/efirt.c
==============================================================================
--- head/sys/dev/efidev/efirt.c	Tue Sep  4 19:27:53 2018	(r338460)
+++ head/sys/dev/efidev/efirt.c	Tue Sep  4 19:28:46 2018	(r338461)
@@ -421,9 +421,9 @@ efi_reset_system(void)
 	ec.ec_name = "rt_reset";
 	ec.ec_argcnt = 4;
 	ec.ec_arg1 = (uintptr_t)EFI_RESET_WARM;
-	ec.ec_arg1 = (uintptr_t)0;
-	ec.ec_arg1 = (uintptr_t)0;
-	ec.ec_arg1 = (uintptr_t)NULL;
+	ec.ec_arg2 = (uintptr_t)0;
+	ec.ec_arg3 = (uintptr_t)0;
+	ec.ec_arg4 = (uintptr_t)NULL;
 	ec.ec_fptr = EFI_RT_METHOD_PA(rt_reset);
 	return (efi_call(&ec));
 }


More information about the svn-src-head mailing list