diff options
Diffstat (limited to 'sys/arch/amd64/stand/efi32/efidev.c')
-rw-r--r-- | sys/arch/amd64/stand/efi32/efidev.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/efi32/efidev.c b/sys/arch/amd64/stand/efi32/efidev.c index e55f6352985..a841a08fcc1 100644 --- a/sys/arch/amd64/stand/efi32/efidev.c +++ b/sys/arch/amd64/stand/efi32/efidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efidev.c,v 1.2 2020/12/09 18:10:18 krw Exp $ */ +/* $OpenBSD: efidev.c,v 1.3 2022/08/12 20:17:46 stsp Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -599,9 +599,11 @@ efiopen(struct open_file *f, ...) return EADAPT; } - if (bv->sbv_level == 'C' && bv->sbv_keys == NULL) + if ((bv->sbv_level == 'C' || bv->sbv_level == 0x1C) && + bv->sbv_keys == NULL) { if (sr_crypto_unlock_volume(bv) != 0) return EPERM; + } if (bv->sbv_diskinfo == NULL) { dip = alloc(sizeof(struct diskinfo)); |