diff options
author | Heiner Kallweit <[email protected]> | 2021-08-22 15:55:23 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-08-24 13:43:04 -0500 |
commit | 550cd7c1b45b568ccac28fd46663799f1ff8a62d (patch) | |
tree | bf433ab72493713cd4f998fd5495d6224307cf23 /lib/test_overflow.c | |
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/[email protected]
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Heiner Kallweit <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions