[U-Boot] [PATCH] mtd: nand: omap_gpmc: fix error handling

Stefan Roese sr at denx.de
Sat Jan 3 07:02:32 CET 2015


On 02.01.2015 18:49, Guido Martínez wrote:
> "err" was an unsigned variable, causing negative error codes to turn
> into positive values, which are interpreted as an amount of succesfully
> corrected bitflips (and thus not an error).
>
> In particular, this resulted in that if the elm reports uncorrectable
> errors (-EBADMSG), the MTD layer (and UBI) falsely succeeded.
>
> Signed-off-by: Guido Martínez <guido at vanguardiasur.com.ar>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan



More information about the U-Boot mailing list