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

Colin Ian King colin.king at canonical.com
Thu Sep 1 18:23:44 UTC 2016


On 01/09/16 19:10, Deb McLemore wrote:
> 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;
> 
Acked-by: Colin Ian King <colin.king at canonical.com>



More information about the fwts-devel mailing list