dmidecode-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dmidecode] [PATCH] fix 'No SMBIOS nor DMI entry point found' on SMB


From: Jean Delvare
Subject: Re: [dmidecode] [PATCH] fix 'No SMBIOS nor DMI entry point found' on SMBIOS3
Date: Wed, 21 Oct 2015 15:17:11 +0200

On Wed, 21 Oct 2015 17:56:59 +0800, Xie XiuQi wrote:
> Thanks for you comments, I've remove this block.
> 
> ---
> 
> From ff99c127447d6e6990468b79263bc1879c05b25e Mon Sep 17 00:00:00 2001
> From: Xie XiuQi <address@hidden>
> Date: Sat, 10 Oct 2015 05:40:40 -0400
> Subject: [PATCH] fix 'No SMBIOS nor DMI entry point found' on SMBIOS3
> 
> address_from_efi may return a smbios or smbios3 format tables,
> so add this condition.
> 
> Signed-off-by: Xie XiuQi <address@hidden>
> ---
>  dmidecode.c | 12 ++++++++++--
>  1 file changed, 10 insertions(+), 2 deletions(-)
> 
> diff --git a/dmidecode.c b/dmidecode.c
> index f41c85b..21da758 100644
> --- a/dmidecode.c
> +++ b/dmidecode.c
> @@ -4864,8 +4864,16 @@ int main(int argc, char * const argv[])
>               goto exit_free;
>       }
> 
> -     if (smbios_decode(buf, opt.devmem, 0))
> -             found++;
> +     if (memcmp(buf, "_SM3_", 5) == 0)
> +     {
> +             if (smbios3_decode(buf, opt.devmem, 0))
> +                     found++;
> +     }
> +     else if (memcmp(buf, "_SM_", 4) == 0)
> +     {
> +             if (smbios_decode(buf, opt.devmem, 0))
> +                     found++;
> +     }
>       goto done;
> 
>  memory_scan:

Applied, thanks.

-- 
Jean Delvare
SUSE L3 Support



reply via email to

[Prev in Thread] Current Thread [Next in Thread]