Index: head/stand/efi/libefi/efichar.c =================================================================== --- head/stand/efi/libefi/efichar.c +++ head/stand/efi/libefi/efichar.c @@ -139,6 +139,8 @@ sz = strlen(name) * 2 + 2; if (*nmp == NULL) *nmp = malloc(sz); + if (*nmp == NULL) + return (ENOMEM); nm = *nmp; *len = sz;