From 8603a229e91e2500366f1f1ad2e437150b19c40d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 25 Mar 2022 14:29:41 +0900 Subject: [PATCH] efi-loader: drop harmful assertion This fixes a bug introduced by 7be4b23649c02df33e4292f37ffc8aecf512955a. The function `efi_loader_get_device_part_uuid()` handles NULL gracefully, and it is called with NULL in gpt-auto-generator. Fixes #22862. --- src/shared/efi-loader.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/shared/efi-loader.c b/src/shared/efi-loader.c index 182a1f0222c..e114d5ea2c6 100644 --- a/src/shared/efi-loader.c +++ b/src/shared/efi-loader.c @@ -62,8 +62,6 @@ int efi_loader_get_device_part_uuid(sd_id128_t *ret) { _cleanup_free_ char *p = NULL; int r, parsed[16]; - assert(ret); - if (!is_efi_boot()) return -EOPNOTSUPP; -- 2.47.3