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

Commit db7c7274 authored by Brian Norris's avatar Brian Norris
Browse files

mtd: readtest: don't clobber error reports



Commit 2a6a28e7 ("mtd: Make MTD tests cancelable") accidentally
clobbered any read failure reports.

Coverity CID #1296020

Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent b787f68c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -191,10 +191,12 @@ static int __init mtd_readtest_init(void)
				err = ret;
		}

		err = mtdtest_relax();
		if (err)
		ret = mtdtest_relax();
		if (ret) {
			err = ret;
			goto out;
		}
	}

	if (err)
		pr_info("finished with errors\n");