[PATCHv3 0/2] PCI: Safe VPD access

2015-12-17 Thread Hannes Reinecke
PCI VPD suffers from two problems: it has a very rudimentary interface and it relies on correctly formatted data. And essentially it provides a direct channel into the card hardware. In other words, plenty of chances to mess things up. With the original implementation we would just read the VPD

[PATCHv3 0/2] PCI: Safe VPD access

2015-12-17 Thread Hannes Reinecke
PCI VPD suffers from two problems: it has a very rudimentary interface and it relies on correctly formatted data. And essentially it provides a direct channel into the card hardware. In other words, plenty of chances to mess things up. With the original implementation we would just read the VPD