summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-04-27 19:19:29 +0300
committerDan McDonald <danmcd@omniti.com>2017-05-01 09:48:58 -0400
commit48d8443e35c27b5e39226cd33f279567424ad20a (patch)
tree992d08a34db5e189690b3caddbeb20c7e566248f
parent5006c573fab20a6acb11b4da6f74e3566ad5f462 (diff)
downloadillumos-joyent-48d8443e35c27b5e39226cd33f279567424ad20a.tar.gz
8117 loader.efi: ResetSystem does not use data with EFI_SUCCESS
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Yuri Pankov <yuri.pankov@gmail.com> Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r--usr/src/boot/sys/boot/efi/loader/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/boot/sys/boot/efi/loader/main.c b/usr/src/boot/sys/boot/efi/loader/main.c
index b0bbce638e..cf689b8384 100644
--- a/usr/src/boot/sys/boot/efi/loader/main.c
+++ b/usr/src/boot/sys/boot/efi/loader/main.c
@@ -462,13 +462,12 @@ command_reboot(int argc __attribute((unused)),
char *argv[] __attribute((unused)))
{
int i;
- const CHAR16 *msg = L"Reboot from the loader";
for (i = 0; devsw[i] != NULL; ++i)
if (devsw[i]->dv_cleanup != NULL)
(devsw[i]->dv_cleanup)();
- RS->ResetSystem(EfiResetCold, EFI_SUCCESS, 23, (CHAR16 *)msg);
+ RS->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
/* NOTREACHED */
return (CMD_ERROR);