ACK: [PATCH] dsddump: fix Package loop condition
Alex Hung
alex.hung at canonical.com
Mon Jun 3 01:10:28 UTC 2019
On 2019-05-31 6:46 a.m., Erico Nunes wrote:
> Fix the loop condition on the dsddump test.
> Without this, dsddump segfaults fwts on platforms with a _DSD.
>
> Signed-off-by: Erico Nunes <ernunes at redhat.com>
> ---
> src/acpi/dsddump/dsddump.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/acpi/dsddump/dsddump.c b/src/acpi/dsddump/dsddump.c
> index 611789b3..1e3c26c1 100644
> --- a/src/acpi/dsddump/dsddump.c
> +++ b/src/acpi/dsddump/dsddump.c
> @@ -87,7 +87,7 @@ static void parse_device_properity(fwts_framework *fw, ACPI_OBJECT *pkg)
> ACPI_OBJECT *sub_pkg = &element->Package.Elements[1];
> uint32_t j;
>
> - for (j = 0; i < sub_pkg->Package.Count; j++)
> + for (j = 0; j < sub_pkg->Package.Count; j++)
> print_package_element(fw, &sub_pkg->Package.Elements[j]);
> } else
> print_package_element(fw, &element->Package.Elements[1]);
>
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list