|
@@ -410,7 +410,7 @@ int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb,
|
|
second_is_newer = !second_is_newer;
|
|
second_is_newer = !second_is_newer;
|
|
} else {
|
|
} else {
|
|
dbg_bld("PEB %d CRC is OK", pnum);
|
|
dbg_bld("PEB %d CRC is OK", pnum);
|
|
- bitflips = !!err;
|
|
|
|
|
|
+ bitflips |= !!err;
|
|
}
|
|
}
|
|
mutex_unlock(&ubi->buf_mutex);
|
|
mutex_unlock(&ubi->buf_mutex);
|
|
|
|
|