]> git.ipfire.org Git - thirdparty/u-boot.git/commit
arch: imx9: Fix blk_dwrite/blk_derase error checking
authorFrancois Berder <fberder@outlook.fr>
Sun, 24 May 2026 20:35:59 +0000 (22:35 +0200)
committerFabio Estevam <festevam@gmail.com>
Fri, 5 Jun 2026 15:54:55 +0000 (12:54 -0300)
commit4feabb2b8a50737f55ffe2ab85568fd0a04954d2
tree7e0db6629e3b4dda48ac12162c2a060679c375cd
parentdfd83eab76c4ca01732e8782dc815595bd9548fa
arch: imx9: Fix blk_dwrite/blk_derase error checking

blk_dwrite/blk_derase returns the number of blocks
written/erased. The existing check allowed partial
writes or partial erase to be considered successful.
Fix error handling of blk_dwrite/blk_derase by checking
that return value corresponds to the number of blocks
written/erased.

Signed-off-by: Francois Berder <fberder@outlook.fr>
arch/arm/mach-imx/imx9/qb.c