fix hanging on invalid data... (This doesn't fix hanging due to broken

hardware)...

Tested by:	Ian Dowse, Adam K Kirchhoff and Vladimir Kushnir
This commit is contained in:
John-Mark Gurney 2006-11-09 21:05:32 +00:00
parent 08598d7067
commit ee03a332df

View File

@ -629,9 +629,10 @@ pci_read_vpd(device_t pcib, pcicfgregs *cfg)
M_WAITOK);
state = 5;
break;
default: /* XXX - unimplemented */
state = 4;
break;
default: /* Invalid data, abort */
end = 1;
cksumvalid = 0;
continue;
}
break;