The PCIe spec tells that all capabilities must be DWORD aligned and the bottom
2 bits of all capability pointers are reserved for future use and must be
ignored when read.
Should fix Mandriva bug #56772.
if (been_there[where]++)
break;
pci_add_cap(d, where, id, PCI_CAP_EXTENDED);
- where = header >> 20;
+ where = (header >> 20) & ~3;
}
while (where);
}
printf("#%02x\n", id);
break;
}
- where = header >> 20;
+ where = (header >> 20) & ~3;
} while (where);
}