[PATCH] opal: mtd: Add error exit when no MTD's

Deb McLemore debmc at linux.vnet.ibm.com
Thu Sep 1 18:10:12 UTC 2016


Add error exit path when no MTD's are found.

Signed-off-by: Deb McLemore <debmc at linux.vnet.ibm.com>
---
 src/opal/mtd_info.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/opal/mtd_info.c b/src/opal/mtd_info.c
index bf1de03..4aac9b9 100644
--- a/src/opal/mtd_info.c
+++ b/src/opal/mtd_info.c
@@ -204,6 +204,7 @@ static int mtd_info_test1(fwts_framework *fw)
 			"candidates. Check the installation "
 			"for the MTD device config.",
 			SYSFS_MTD_PATH);
+		return FWTS_ERROR;
 	}
 
 	bytes = 0;
-- 
2.7.4




More information about the fwts-devel mailing list