Maximilian Thuermer found a bug where the HT link capability code was always
updating the passed value to the next link offset even when it was on the
requested link (cap_count).

Signed-off-by: Marc Jones <marcj303@gmail.com>

Index: coreboot-v2/src/cpu/amd/model_10xxx/init_cpus.c
===================================================================
--- coreboot-v2.orig/src/cpu/amd/model_10xxx/init_cpus.c	2009-06-15 15:47:31.000000000 -0600
+++ coreboot-v2/src/cpu/amd/model_10xxx/init_cpus.c	2009-06-15 15:06:31.000000000 -0600
@@ -719,11 +719,13 @@
 	do {
 		val = pci_read_config32(NODE_PCI(node, 0), val);
 		/* Is the capability block a HyperTransport capability block? */
-		if ((val & 0xFF) == 0x08)
+		if ((val & 0xFF) == 0x08) {
 			/* Is the HT capability block an HT Host Capability? */
 			if ((val & 0xE0000000) == (1 << 29))
 				cap_count--;
-		val = (val >> 8) & 0xFF;
+		}
+		if (cap_count)
+			val = (val >> 8) & 0xFF;
 	} while (cap_count && val);
 
 	*offset = (u8) val;
