aboutsummaryrefslogtreecommitdiff
path: root/ubifs-utils/libubifs/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubifs-utils/libubifs/log.c')
-rw-r--r--ubifs-utils/libubifs/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ubifs-utils/libubifs/log.c b/ubifs-utils/libubifs/log.c
index 0d45926..c3dfd98 100644
--- a/ubifs-utils/libubifs/log.c
+++ b/ubifs-utils/libubifs/log.c
@@ -711,6 +711,7 @@ int ubifs_consolidate_log(struct ubifs_info *c)
destroy_done_tree(&done_tree);
vfree(buf);
if (write_lnum == c->lhead_lnum) {
+ set_failure_reason_callback(c, FR_DATA_CORRUPTED);
ubifs_err(c, "log is too full");
return -EINVAL;
}