Skip to content
Commit ce7585f3 authored by Alex Williamson's avatar Alex Williamson
Browse files

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: 4e1a6355 ("vfio/pci: Use kernel VPD access functions")
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 089f1c6b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment