Skip to content

Commit 4d88de4

Browse files
Artem BityutskiyArtem Bityutskiy
authored andcommitted
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>
1 parent 8c1e6ee commit 4d88de4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mtd/ubi/eba.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ int ubi_eba_atomic_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
906906
}
907907

908908
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);
910910
if (err)
911911
goto out_leb_unlock;
912912
}

0 commit comments

Comments
 (0)