Skip to content

Commit

Permalink
14312 bhyve smbios type 3 structure is incorrect
Browse files Browse the repository at this point in the history
Reviewed by: Patrick Mooney <pmooney@pfmooney.com>
Reviewed by: Andy Fiddaman <andy@omnios.org>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
  • Loading branch information
rmustacc committed Dec 24, 2021
1 parent c9d20e6 commit 058c1d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/src/cmd/bhyve/smbiostbl.c
Expand Up @@ -200,6 +200,7 @@ struct smbios_table_type3 {
uint8_t psstate; /* power supply state */
uint8_t tstate; /* thermal state */
uint8_t security; /* security status */
uint32_t oemdata; /* OEM-specific data */
uint8_t uheight; /* height in 'u's */
uint8_t cords; /* number of power cords */
uint8_t elems; /* number of element records */
Expand Down Expand Up @@ -418,6 +419,7 @@ struct smbios_table_type3 smbios_type3_template = {
SMBIOS_CHST_SAFE,
SMBIOS_CHST_SAFE,
SMBIOS_CHSC_NONE,
0, /* OEM specific data, we have none */
0, /* height in 'u's (0=enclosure height unspecified) */
0, /* number of power cords (0=number unspecified) */
0, /* number of contained element records */
Expand Down

0 comments on commit 058c1d4

Please sign in to comment.