-/* $OpenBSD: conf.c,v 1.7 2017/05/31 08:40:32 yasuoka Exp $ */
+/* $OpenBSD: conf.c,v 1.8 2017/06/01 11:32:15 patrick Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
#include "efiboot.h"
#include "efidev.h"
-const char version[] = "3.32";
+const char version[] = "3.33";
#ifdef EFI_DEBUG
int debug = 0;
-/* $OpenBSD: efiboot.c,v 1.19 2017/05/31 08:40:32 yasuoka Exp $ */
+/* $OpenBSD: efiboot.c,v 1.20 2017/06/01 11:32:15 patrick Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
status = EFI_CALL(BS->LocateHandle, ByProtocol, &serio_guid,
0, &sz, handles);
}
- if (handles == NULL || EFI_ERROR(status))
- panic("could not get handles of serial i/o");
+ if (handles == NULL || EFI_ERROR(status)) {
+ free(handles, sz);
+ return;
+ }
for (i = 0; i < sz / sizeof(EFI_HANDLE); i++) {
/*