--- eeprom/decode-dimms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index 3a50c07..4a861bd 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -345,7 +345,7 @@ sub manufacturer_ddr3($$) my $manufacturer; return "Invalid" if parity($code) != 1; - return "Unknown" if ($code & 0x7F) - 1 > $vendors[$count & 0x7F]; + return "Unknown" if ($code & 0x7F) > @{$vendors[$count & 0x7F]}; $manufacturer = $vendors[$count & 0x7F][($code & 0x7F) - 1]; $manufacturer =~ s/ \(former .*\)$// if $opt_side_by_side; $manufacturer .= "? (Invalid parity)" if parity($count) != 1; -- 2.4.0 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html