Skip to content

Commit 69a1c9c

Browse files
author
David Sommerseth
committed
Fixed a missing break statement in a switch for DMI section 3.3.7.2
This missing break could cause duplicated 'installed' attributes in <InstalledSize/> or <EnabledSize/> XML tags. This is only happening when dmi_memory_module_size() is called and only on some hardware. Signed-off-by: David Sommerseth <[email protected]>
1 parent b82aff2 commit 69a1c9c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/dmidecode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,7 @@ void dmi_memory_module_size(xmlNode *node, const char *tagname, u8 code)
15161516
case 0x7F:
15171517
dmixml_AddAttribute(data_n, "installed", "0");
15181518
check_conn = 0;
1519+
break;
15191520
default:
15201521
dmixml_AddAttribute(data_n, "installed", "1");
15211522
dmixml_AddAttribute(data_n, "unit", "MB");

0 commit comments

Comments
 (0)