diff options
author | Heiner Kallweit <[email protected]> | 2021-08-18 21:02:33 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-08-20 15:49:00 -0500 |
commit | 5119e20facfaa9f5454dd01192f3729415c7b139 (patch) | |
tree | e59c3459f97d19d5cd29dbf1c54df8215bcfd06b /lib/mpi/mpi-mod.c | |
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/[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