From: Artem Bityutskiy Date: Tue, 8 Feb 2011 15:21:11 +0000 (+0200) Subject: UBIFS: fix LEB number in printk X-Git-Tag: firefly_0821_release~7613^2~2149^2~18 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=10ac27970274e9094aee84a6452a25bf1b7e59e1;p=firefly-linux-kernel-4.4.55.git UBIFS: fix LEB number in printk This is a minor patch which fixes the LEB number we print when corrupted empty space is found. Signed-off-by: Artem Bityutskiy --- diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c index 6ecbc91ef9ac..e2714f8f05ff 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; }