]> git.ipfire.org Git - thirdparty/u-boot.git/commit
smbios: Fix duplicated smbios handles
authorRaymond Mao <raymondmaoca@gmail.com>
Fri, 13 Feb 2026 22:52:46 +0000 (17:52 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 18 Feb 2026 14:27:51 +0000 (08:27 -0600)
commit87f8a143da550a2de39dd5b30d3547bc8dfd7174
tree5b2a013fee88a14c9607b31948b5f7ee6e30bee9
parent7080475bb7c2e9ed272cb88be83a42e73edfe0f7
smbios: Fix duplicated smbios handles

Some smbios types can have multiple instances (e.g. Type 7, 9, 16, 17,
19), thus the 'handle' argument should be a pointer so that the value
can be accumulated when writing all the instances.
This also fix the observed duplicated Type 7 handles.

Fixes: bcf456dd369e ("smbios: add detailed smbios information")
Signed-off-by: Raymond Mao <raymondmaoca@gmail.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/smbios.c