mtd: readtest: don't clobber error reports
Commit 2a6a28e792
("mtd: Make MTD tests cancelable") accidentally
clobbered any read failure reports.
Coverity CID #1296020
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
b787f68c36
commit
db7c727402
1 changed files with 4 additions and 2 deletions
|
@ -191,10 +191,12 @@ static int __init mtd_readtest_init(void)
|
||||||
err = ret;
|
err = ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = mtdtest_relax();
|
ret = mtdtest_relax();
|
||||||
if (err)
|
if (ret) {
|
||||||
|
err = ret;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
pr_info("finished with errors\n");
|
pr_info("finished with errors\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue