[U-Boot] mtd: nand: omap_gpmc: fix error handling
Tom Rini
trini at ti.com
Wed Jan 7 16:15:49 CET 2015
On Fri, Jan 02, 2015 at 02:49:10PM -0300, 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150107/35cc64b8/attachment.pgp>
More information about the U-Boot
mailing list