From: Yu Watanabe Date: Fri, 25 Mar 2022 05:29:41 +0000 (+0900) Subject: efi-loader: drop harmful assertion X-Git-Tag: v251-rc1~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8603a229e91e2500366f1f1ad2e437150b19c40d;p=thirdparty%2Fsystemd.git 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. --- 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;