Revert "bnxt: Search VPD with pci_vpd_find_ro_info_keyword()"
This reverts commit 58a9b5d2621e725526a63847ae77b3a4c2c2bf93. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4a55c34e30
commit
4fd1315706
@ -13195,6 +13195,12 @@ static void bnxt_vpd_read_info(struct bnxt *bp)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
i = pci_vpd_find_tag(vpd_data, vpd_size, PCI_VPD_LRDT_RO_DATA);
|
||||
if (i < 0) {
|
||||
netdev_err(bp->dev, "VPD READ-Only not found\n");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
ro_size = pci_vpd_lrdt_size(&vpd_data[i]);
|
||||
i += PCI_VPD_LRDT_TAG_SIZE;
|
||||
if (i + ro_size > vpd_size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user