diff options
| author | Heiner Kallweit <[email protected]> | 2021-08-22 15:55:23 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-08-22 21:45:40 +0100 |
| commit | ebcdc8ebe8acbaef5d130350a8082e12ac7d4e61 (patch) | |
| tree | c85ebc298f5d601fea83f9f58f062805b2ccc11d /tools/perf/scripts/python/Perf-Trace-Util/Context.c | |
| parent | da417885a99d36036cc7d2778f94b846e6582434 (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.
Signed-off-by: Heiner Kallweit <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
0 files changed, 0 insertions, 0 deletions