Skip to content
Snippets Groups Projects
Commit eb54d2c7 authored by Guido Martínez's avatar Guido Martínez Committed by Tom Rini
Browse files

mtd: nand: omap_gpmc: fix error handling


"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: default avatarGuido Martínez <guido@vanguardiasur.com.ar>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 001475a0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment