diff options
author | Heiner Kallweit <[email protected]> | 2021-08-18 21:04:37 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-08-20 15:49:00 -0500 |
commit | f240e15097c5004811a58f2cbc170bf90d06d0a9 (patch) | |
tree | aeb9fe27612afcd7cc184ea7df6c15c55aa8eb26 /lib/test_overflow.c | |
parent | 37838aa437c78fefd7d818f5f01a3a3950e92f40 (diff) |
tg3: 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]
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