From: Mike Yuan Date: Thu, 19 Sep 2024 14:07:01 +0000 (+0200) Subject: boot: use INC_SAFE where appropriate X-Git-Tag: v257-rc1~390 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48837c65008a312810c4cad2789dd3fb7bc27488;p=thirdparty%2Fsystemd.git boot: use INC_SAFE where appropriate --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index aa2533b49ee..16d3d6a426f 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -2464,7 +2464,7 @@ static EFI_STATUS initrd_prepare( if (err != EFI_SUCCESS) return err; - if (!ADD_SAFE(&size, size, ALIGN4(info->FileSize))) + if (!INC_SAFE(&size, ALIGN4(info->FileSize))) return EFI_OUT_OF_RESOURCES; }