1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

boot: use INC_SAFE where appropriate

(cherry picked from commit 48837c6500)
This commit is contained in:
Mike Yuan 2024-09-19 16:07:01 +02:00 committed by Luca Boccassi
parent 7884db1b93
commit d7ae71b9c1

View File

@ -2292,7 +2292,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;
}