boot: use INC_SAFE where appropriate

This commit is contained in:
Mike Yuan
2024-09-19 16:07:01 +02:00
committed by Yu Watanabe
parent 754d6414f8
commit 48837c6500

View 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;
}