diff options
author | Heiner Kallweit <[email protected]> | 2021-08-22 15:48:33 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-08-24 11:40:39 -0500 |
commit | 667bb0e8f7106c6ca3b30254a7fdcd1ea04d3580 (patch) | |
tree | 8b324959f333a16628feadab48c7f1b7507fdc92 /lib/test_overflow.c | |
parent | 466a79f417be2f2b0d875a9766a3cff10c3bedf1 (diff) |
sfc: falcon: 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.
This is the same as 5119e20facfa ("sfc: Read VPD with pci_vpd_alloc()"),
just for the falcon chip version.
Link: https://lore.kernel.org/r/[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