diff options
author | Heiner Kallweit <[email protected]> | 2021-08-18 20:59:31 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-08-20 15:13:20 -0500 |
commit | 76f3c032adad86aad26f8ad3eebc993b4ba32138 (patch) | |
tree | d4ad227a456d5233f998fb2435d94f35a215e0cc /lib/mpi/mpi-mod.c | |
parent | fe7568cf2f2dc3a0783f6ffdb3802c1ce2085466 (diff) |
PCI/VPD: Add pci_vpd_alloc()
Several users of the VPD API use a fixed-size buffer and read the VPD into
it for further usage. This requires special handling for the case that the
buffer isn't big enough to hold the full VPD data. Also the buffer is
often allocated on the stack, which isn't too nice.
Add pci_vpd_alloc() to dynamically allocate buffer of the correct size and
read VPD into it.
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/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions