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

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
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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)