* [PATCH] [MTD] UBI: fix peb scan
@ 2007-03-02 10:29 Alexander Schmidt
2007-03-02 11:32 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Schmidt @ 2007-03-02 10:29 UTC (permalink / raw)
To: Artem; +Cc: linux-mtd@lists.infradead.org
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);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] [MTD] UBI: fix peb scan
2007-03-02 10:29 [PATCH] [MTD] UBI: fix peb scan Alexander Schmidt
@ 2007-03-02 11:32 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2007-03-02 11:32 UTC (permalink / raw)
To: Alexander Schmidt; +Cc: linux-mtd@lists.infradead.org
On Fri, 2007-03-02 at 11:29 +0100, Alexander Schmidt wrote:
> Hi Artem,
>
> Volumes containing only one PEB got a wrong vtr->last_eb_bytes.
>
Oh, thanks!
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-02 11:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-02 10:29 [PATCH] [MTD] UBI: fix peb scan Alexander Schmidt
2007-03-02 11:32 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox