]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: use INC_SAFE where appropriate
authorMike Yuan <me@yhndnzj.com>
Thu, 19 Sep 2024 14:07:01 +0000 (16:07 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Sep 2024 23:28:39 +0000 (08:28 +0900)
src/boot/efi/boot.c

index aa2533b49ee8ba46097ee2251057ada5045f9e03..16d3d6a426fbbc6ab35cbed78112b655540eb0d7 100644 (file)
@@ -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;
         }