diff options
| author | Francois Berder <[email protected]> | 2026-05-24 21:25:47 +0200 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2026-06-15 09:14:53 +0200 |
| commit | 1bd1d033377796418008e9a2351f18dbdf88940c (patch) | |
| tree | 1dc743f2af9733189677e60ca513ce55e9282dd4 /tools | |
| parent | 1e80ee41441c612f05787a93bbef4e6e422e29d1 (diff) | |
fastboot: Fix blk_dwrite error checking
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 <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Link: https://patch.msgid.link/BESP194MB2805BBD03E7C92727F116585DA0D2@BESP194MB2805.EURP194.PROD.OUTLOOK.COM
Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
