smbios-mdr: Fix the index while modifying dimm objects
Since all the dimms are being iterated in order of device locator for
all the dimm the index in the array should be same which is the order
they were inserted (but the index in the smbios can be different).
In the original block (i.e without the feature), we are also checking
the same logic. While copying the logic to the new feature, that was
missed.
Tested: In multihost machine, swapped the smbios content and reboot. The
machine showed all the dimm values properly.
Fusion-Link: fusion2 link in the comment
Affected-Platforms: Platform21 and platform15
Google-Bug-Id: 445181807
Change-Id: I9e4d7f3931735e4b2ab1ed1af967e10ba19c5799
Signed-off-by: Munawar Hussain <munawarhussain@google.com>
1 file changed