Skip to contentSkip to conversation

UBIFS: fix LEB number in printk

PATCH New Artem Bityutskiy 1 participant 1 message Feb 8, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 UBIFS: fix LEB number in printk

From: Artem Bityutskiy <[email protected]>

This is a minor patch which fixes the LEB number we print when corrupted empty space is found.

---
 fs/ubifs/recovery.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ubifs/recovery.c +1 -1
index 6ecbc91..e2714f8 100644
@@ -695,7 +695,7 @@ struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
 			ubifs_err("corrupt empty space LEB %d:%d, corruption "
 				  "starts at %d", lnum, offs, corruption);
 			/* Make sure we dump interesting non-0xFF data */
-			offs = corruption;
+			offs += corruption;
 			buf += corruption;
 			goto corrupted;
 		}
Signature · 1 line
1.7.2.3