I have several cards which report more-or-less garbage in their VPD. It can take an extraordinarily long time to read all their VPD and none of it is of interest. Instead, if we find an unknown resource type, just stop trying to read any more. Signed-off-by: Matthew Wilcox <willy@xxxxxxxxxxxxxxx> diff --git a/ls-vpd.c b/ls-vpd.c index f50d7a4..1ba917f 100644 --- a/ls-vpd.c +++ b/ls-vpd.c @@ -204,7 +204,7 @@ cap_vpd(struct device *d) default: printf("\t\tUnknown %s resource type %02x\n", (tag & 0x80) ? "large" : "small", tag & ~0x80); - break; + return; } res_addr += res_len; -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html