diff options
Diffstat (limited to 'ubi-utils')
-rw-r--r-- | ubi-utils/src/libmtd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ubi-utils/src/libmtd.c b/ubi-utils/src/libmtd.c index b2f386a..32fdf57 100644 --- a/ubi-utils/src/libmtd.c +++ b/ubi-utils/src/libmtd.c @@ -194,7 +194,7 @@ int mtd_is_bad(const struct mtd_info *mtd, int eb) if (ret == -1) return sys_errmsg("MEMGETBADBLOCK ioctl failed for " "eraseblock %d (mtd%d)", eb, mtd->num); - return 0; + return ret; } /** |