You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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:
@@ -191,9 +191,11 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user