Skip to content

Fix buggy assertion in pcid capability parser.

Wren Turkal requested to merge wt/drivers:fix_cap_parser into master

The pcid capability parsing code has an assertion that checks for dword alignment. Unfortunately, the check was previously checking for alignment to qwords. This fixes that.

I found this issue by using qemu to emulate adding different pci devices. I managed to come across a device that had a capability aligned on dword, but not qword. That exposed the bug.

Signed-off-by: Wren Turkal wt@penguintechs.org

Merge request reports