From: Alexander Schmidt <alexs@linux.vnet.ibm.com>
To: Artem <dedekind@infradead.org>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: [PATCH] [MTD] UBI: fix peb scan
Date: Fri, 2 Mar 2007 11:29:30 +0100 [thread overview]
Message-ID: <200703021129.30577.alexs@linux.vnet.ibm.com> (raw)
Hi Artem,
Volumes containing only one PEB got a wrong vtr->last_eb_bytes.
Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com>
---
drivers/mtd/ubi/scan.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- dedekind-ubi-2.6.orig/drivers/mtd/ubi/scan.c
+++ dedekind-ubi-2.6/drivers/mtd/ubi/scan.c
@@ -588,7 +588,7 @@ int ubi_scan_add_peb(const struct ubi_in
seb->scrub = bitflips;
seb->leb_ver = leb_ver;
- if (sv->highest_lnum < lnum) {
+ if (sv->highest_lnum <= lnum) {
sv->highest_lnum = lnum;
sv->last_data_size = ubi32_to_cpu(vid_hdr->data_size);
}
next reply other threads:[~2007-03-02 10:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-02 10:29 Alexander Schmidt [this message]
2007-03-02 11:32 ` [PATCH] [MTD] UBI: fix peb scan Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200703021129.30577.alexs@linux.vnet.ibm.com \
--to=alexs@linux.vnet.ibm.com \
--cc=dedekind@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox