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

Commit dad22b7a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "UBI: Call scan_all() with correct offset in error case"

parents f381f0e1 f561e40b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1417,11 +1417,13 @@ int ubi_attach(struct ubi_device *ubi, int force_scan)
				ai = alloc_ai("ubi_aeb_slab_cache2");
				if (!ai)
					return -ENOMEM;
			}

				err = scan_all(ubi, ai, 0);
			} else {
				err = scan_all(ubi, ai, UBI_FM_MAX_START);
			}
		}
	}
#else
	err = scan_all(ubi, ai, 0);
#endif