diff options
author | 2021-08-18 21:02:33 +0200 | |
---|---|---|
committer | 2021-08-20 15:49:00 -0500 | |
commit | 5119e20facfaa9f5454dd01192f3729415c7b139 (patch) | |
tree | e59c3459f97d19d5cd29dbf1c54df8215bcfd06b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI/VPD: Add pci_vpd_check_csum() (diff) | |
download | linux-dev-5119e20facfaa9f5454dd01192f3729415c7b139.tar.xz linux-dev-5119e20facfaa9f5454dd01192f3729415c7b139.zip |
sfc: Read VPD with pci_vpd_alloc()
Use pci_vpd_alloc() to dynamically allocate a properly sized buffer and
read the full VPD data into it.
This avoids having to allocate a buffer on the stack, and we don't have to
make any assumptions on VPD size and location of information in VPD.
Link: https://lore.kernel.org/r/e58f1e40-c043-0266-9a0f-e5a7f3f6883c@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions