On Sat, Dec 23, 2023 at 01:44:26AM +0100, Heinrich Schuchardt wrote: > The type 2 structure must include information about the contained objects. > It is fine to set the number of contained object handles to 0. > > Add the missing field. > > Fixes: 721e992a8af5 ("x86: Add SMBIOS table support") > Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> > --- > include/smbios.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/smbios.h b/include/smbios.h > index e601283d29..88c19ae062 100644 > --- a/include/smbios.h > +++ b/include/smbios.h > @@ -139,6 +139,7 @@ struct __packed smbios_type2 { > u8 chassis_location; > u16 chassis_handle; > u8 board_type; > + u8 number_contained_objects; > char eos[SMBIOS_STRUCT_EOS_BYTES]; > }; > > -- > 2.43.0 > Reviewed-by: Ilias Apalodimas <ilias.apalodi...@linaro.org>
- [PATCH 0/5] cmd: provide command to display SMBIOS inf... Heinrich Schuchardt
- [PATCH 1/5] smbios: correct definition of gd_smbi... Heinrich Schuchardt
- Re: [PATCH 1/5] smbios: correct definition of... Simon Glass
- [PATCH 2/5] smbios: type2: contained object handl... Heinrich Schuchardt
- Re: [PATCH 2/5] smbios: type2: contained obje... Simon Glass
- Re: [PATCH 2/5] smbios: type2: contained ... Heinrich Schuchardt
- Re: [PATCH 2/5] smbios: type2: contained obje... Ilias Apalodimas
- [PATCH 4/5] doc: man-page for smbios command Heinrich Schuchardt
- Re: [PATCH 4/5] doc: man-page for smbios comm... Simon Glass
- Re: [PATCH 4/5] doc: man-page for smbios comm... Ilias Apalodimas
- [PATCH 3/5] cmd: provide command to display SMBIO... Heinrich Schuchardt
- Re: [PATCH 3/5] cmd: provide command to displ... Simon Glass
- Re: [PATCH 3/5] cmd: provide command to displ... Peter Robinson
- [PATCH 5/5] test: unit test for smbios command Heinrich Schuchardt
- Re: [PATCH 5/5] test: unit test for smbios co... Simon Glass
- Re: [PATCH 5/5] test: unit test for smbio... Heinrich Schuchardt
- Re: [PATCH 5/5] test: unit test for s... Simon Glass