[PATCH] fastboot: Fix blk_dwrite error checking

Mattijs Korpershoek mkorpershoek at kernel.org
Mon Jun 8 11:27:59 CEST 2026


Hi Francois,

Thank you for the patch.

On Sun, May 24, 2026 at 21:25, Francois Berder <fberder at outlook.fr> wrote:

> blk_dwrite() returns the number of blocks written.
> The code was only checking if the return value was different
> than 0. Hence, partial writes were considered successful.
> Fix blk_dwrite error handling by checking that all blocks
> are written.
>
> Signed-off-by: Francois Berder <fberder at outlook.fr>

Reviewed-by: Mattijs Korpershoek <mkorpershoek at kernel.org>

> ---


More information about the U-Boot mailing list