diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-22 16:53:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-22 23:45:39 +0300 |
commit | bed3db3d734e8e55815d865913ef75d9f707db96 (patch) | |
tree | 36eec7cbf16df50afba2af881c1445454d073ec6 /lib/test-string_helpers.c | |
parent | 0df79c864636a209bf95ca93d986ca4cdd72bb89 (diff) | |
download | linux-bed3db3d734e8e55815d865913ef75d9f707db96.tar.xz |
bnx2x: 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 <hkallweit1@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions