Avoid requesting IBM VPD data for FRU locator records that do not advertise such data.

This commit is contained in:
Jarrod Johnson 2014-06-03 15:32:24 -04:00
parent 48a0eedb88
commit 3f3b6eaaa1

View File

@ -2782,7 +2782,7 @@ sub readcurrfrudevice {
shift @data;
push @{$sessdata->{currfrudata}},@data;
if ($sessdata->{currfrudone}) {
if ($sessdata->{isite}) {
if ($sessdata->{isite} and $sessdata->{currfrusdr} and ($sessdata->{currfrusdr}->fru_oem & 0x80)) {
#IBM OEM command, d0,51,0 further qualifies the command name, we'll first take a stop at block 0, offset 2, one byte, to get VPD version number
#command structured as:
#d0,51,0 = command set identifier