Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 815c6db1 authored by David Zeuthen's avatar David Zeuthen
Browse files

ANDROID: AVB: Fix invalidate_vbmeta_submit().



On some boards with newer kernels the invalidate_vbmeta_submit()
function failed likely because it's using a hard-coded size of
512. Use PAGE_SIZE and also use bio_add_page(). Also print out if the
I/O actually fails.

Additionally, print major:minor of the device we're acting on since
another subset of boards get this wrong by passing the wrong GUID to
libavb in the bootloader. Having this information printed out makes it
a lot easier to pinpoint such mistakes.

Test: Manually tested.
Bug: 38451312
Change-Id: Ib58548953a3375a3c79acf74aa745be9420b8216
Signed-off-by: default avatarDavid Zeuthen <zeuthen@google.com>
parent a533221d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment