aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-07-18 05:42:14 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-07-24 06:34:46 -0400
commit4d88de4beb6f327dfc7c2221eab532dad5b2bb3e (patch)
tree08493144ffc09243a4f4f97810c87bd6db4ffac9
parent8c1e6ee10bd87d70faada065a8d1f70732c17382 (diff)
UBI: bugfix - do not torture PEB needlessly
This is probably a copy-paste bug - we torture the old PEB in the atomic LEB change function, but we should not do this. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--drivers/mtd/ubi/eba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c
index 613cd1e5164..e14208152c3 100644
--- a/drivers/mtd/ubi/eba.c
+++ b/drivers/mtd/ubi/eba.c
@@ -906,7 +906,7 @@ retry:
906 } 906 }
907 907
908 if (vol->eba_tbl[lnum] >= 0) { 908 if (vol->eba_tbl[lnum] >= 0) {
909 err = ubi_wl_put_peb(ubi, vol->eba_tbl[lnum], 1); 909 err = ubi_wl_put_peb(ubi, vol->eba_tbl[lnum], 0);
910 if (err) 910 if (err)
911 goto out_leb_unlock; 911 goto out_leb_unlock;
912 } 912 }