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:
parent
7884db1b93
commit
d7ae71b9c1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user