vbe: Tidy up error checking with blk_read()
authorSimon Glass <sjg@chromium.org>
Thu, 16 Jan 2025 01:27:13 +0000 (18:27 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 22 Jan 2025 15:47:49 +0000 (09:47 -0600)
commitd337037e1a7b74c05dcaff62739df45a2933078e
tree19a30f9b6236700863acc3cc8f21275701cccf19
parent91f27b5b0735e6ef18902af12f74d8f357e6dc42
vbe: Tidy up error checking with blk_read()

This function can read fewer blocks than requested, so update the checks
to handle this.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/vbe_common.c