summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2016-05-31 21:25:52 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-10 10:25:52 +0200
commita13415839d626b17c73263397359c0ca8e89f0d3 (patch)
treebd11905a2d4dc9c05be6071d1f135da49ff7bc23 /tools/perf/scripts/python/netdev-times.py
parent7cf7cfdf3ce4f36d635a6514391c7768d864faff (diff)
vfio/pci: Allow VPD short read
commit ce7585f3c4d76bca1dff4b66ae1ea32552954f9e upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions