Patchwork UBIFS: fix LEB number in printk

login
register
mail settings
Submitter Artem Bityutskiy
Date Feb. 8, 2011, 3:25 p.m.
Message ID <1297178700-8297-1-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/82351/
State New
Headers show

Comments

Artem Bityutskiy - Feb. 8, 2011, 3:25 p.m.
From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

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

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
---
 fs/ubifs/recovery.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
index 6ecbc91..e2714f8 100644
--- a/fs/ubifs/recovery.c
+++ b/fs/ubifs/recovery.c
@@ -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;
 		}