Commit 4fd13157 authored by David S. Miller's avatar David S. Miller

Revert "bnxt: Search VPD with pci_vpd_find_ro_info_keyword()"

This reverts commit 58a9b5d2.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4a55c34e
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment