aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 613cd1e51648..e14208152c36 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 }