mtd: readtest: don't clobber error reports
PATCH 1/1 mtd: readtest: don't clobber error reports
Commit 2a6a28e7922c ("mtd: Make MTD tests cancelable") accidentally clobbered any read failure reports.
Coverity CID #1296020
---
regression in v4.1-rc1, so I'll probably want to queue this for 4.1
drivers/mtd/tests/readtest.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/mtd/tests/readtest.c +4 -2
@@ -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)
Signature · 1 line
1.9.1
Richard Weinberger
maintainerAm 12.05.2015 um 23:33 schrieb Brian Norris:
Quoted 8 lines
Commit
2a6a28e7922c("mtd: Make MTD tests cancelable") accidentally clobbered any read failure reports.Coverity CID #1296020
Signed-off-by Brian Norris <[email protected]>---
regression in v4.1-rc1, so I'll probably want to queue this for 4.1
Sounds sane. Thanks for fixing!
Thanks,
//richard
Brian Norris
AppliedQuoted 11 lines · Richard Weinberger
Am 12.05.2015 um 23:33 schrieb Brian Norris:
Quoted 8 lines
Commit
2a6a28e7922c("mtd: Make MTD tests cancelable") accidentally clobbered any read failure reports.Coverity CID #1296020
Signed-off-by Brian Norris <[email protected]>---
regression in v4.1-rc1, so I'll probably want to queue this for 4.1Sounds sane. Thanks for fixing!
Applied to linux-mtd.git.
Brian