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

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

Merge "UBI: do not abort init when ubi.mtd devices cannot be found"

parents 0e9e5586 6d298fb7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1261,7 +1261,11 @@ static int __init ubi_init(void)
		mtd = open_mtd_device(p->name);
		if (IS_ERR(mtd)) {
			err = PTR_ERR(mtd);
			ubi_err("cannot open mtd %s, error %d", p->name, err);
			/* See comment below re-ubi_is_module(). */
			if (ubi_is_module())
				goto out_detach;
			continue;
		}

		mutex_lock(&ubi_devices_mutex);