diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2023-05-28 18:50:46 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2023-05-28 18:54:50 +0000 |
| commit | 9ed4ec4ae34a9ecab0471f1dbf392729155d7411 (patch) | |
| tree | b47b4755066ec1e404c85a9aa36c8ed51bbd1f01 /stand/efi | |
| parent | 697727110b68e483c320d834bcbcdf01c01142a1 (diff) | |
Diffstat (limited to 'stand/efi')
| -rw-r--r-- | stand/efi/libefi/eficom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stand/efi/libefi/eficom.c b/stand/efi/libefi/eficom.c index 4c104114d445..f5969cc5d42a 100644 --- a/stand/efi/libefi/eficom.c +++ b/stand/efi/libefi/eficom.c @@ -497,7 +497,7 @@ comc_port_set(struct env_var *ev, int flags, const void *value) EFI_HANDLE handle; EFI_STATUS status; - if (value == NULL) + if (value == NULL || comc_port == NULL) return (CMD_ERROR); if (comc_parse_intval(value, &port) != CMD_OK) @@ -532,7 +532,7 @@ comc_speed_set(struct env_var *ev, int flags, const void *value) { unsigned speed; - if (value == NULL) + if (value == NULL || comc_port == NULL) return (CMD_ERROR); if (comc_parse_intval(value, &speed) != CMD_OK) |
