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

Alex Hung alex.hung at canonical.com
Fri Sep 2 00:44:46 UTC 2016


On 2016-09-02 02:10 AM, 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: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list