diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-18 21:02:33 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-08-20 15:49:00 -0500 |
commit | 5119e20facfaa9f5454dd01192f3729415c7b139 (patch) | |
tree | e59c3459f97d19d5cd29dbf1c54df8215bcfd06b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 6107e5cb907cffc5576cc1297847f9fc69a8d5d9 (diff) |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions