]> mj.ucw.cz Git - pciutils.git/commit
Avoid unaligned accesses to extended capabilities.
authorMartin Mares <mj@ucw.cz>
Sat, 16 Jan 2010 11:10:09 +0000 (12:10 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 16 Jan 2010 11:10:09 +0000 (12:10 +0100)
commitd61c47722516d1955c4e7176d738b54a762f9343
tree259d4ed6263078a4566d36aa6b7047b458ee32e6
parent0188807ce1b0156ce93ffa91b367511ae2fe8cfe
Avoid unaligned accesses to extended capabilities.

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.
lib/caps.c
ls-ecaps.c