Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d88de4b authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

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: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 8c1e6ee1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -906,7 +906,7 @@ int ubi_eba_atomic_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
	}
	}


	if (vol->eba_tbl[lnum] >= 0) {
	if (vol->eba_tbl[lnum] >= 0) {
		err = ubi_wl_put_peb(ubi, vol->eba_tbl[lnum], 1);
		err = ubi_wl_put_peb(ubi, vol->eba_tbl[lnum], 0);
		if (err)
		if (err)
			goto out_leb_unlock;
			goto out_leb_unlock;
	}
	}