commit | ce7585f3c4d76bca1dff4b66ae1ea32552954f9e | [log] [tgz] |
---|---|---|
author | Alex Williamson <alex.williamson@redhat.com> | Tue May 31 21:25:52 2016 -0600 |
committer | Alex Williamson <alex.williamson@redhat.com> | Tue May 31 21:25:52 2016 -0600 |
tree | bdaa94825fb400c596b5ddac362d55c0f25680fe | |
parent | 089f1c6b2daeab750fd92a28529928bc13c95d97 [diff] |
vfio/pci: Allow VPD short read The size of the VPD area is not necessarily 4-byte aligned, so a pci_vpd_read() might return less than 4 bytes. Zero our buffer and accept anything other than an error. Intel X710 NICs exercise this. Fixes: 4e1a635552d3 ("vfio/pci: Use kernel VPD access functions") Signed-off-by: Alex Williamson <alex.williamson@redhat.com>