diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-22 15:55:23 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-08-24 13:43:04 -0500 |
commit | 550cd7c1b45b568ccac28fd46663799f1ff8a62d (patch) | |
tree | bf433ab72493713cd4f998fd5495d6224307cf23 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3831cba07a4bf96bc75fb963451a49d7f676c7d6 (diff) |
bnxt: 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 simplifies the code, and we no longer have to make assumptions about
VPD size.
Link: https://lore.kernel.org/r/62522a24-f39a-2b35-1577-1fbb41695bed@gmail.com
Reported-by: kernel test robot <lkp@intel.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