diff --git a/pcid/src/pci/cap.rs b/pcid/src/pci/cap.rs index 8d5682079d..2e4f946a70 100644 --- a/pcid/src/pci/cap.rs +++ b/pcid/src/pci/cap.rs @@ -197,7 +197,7 @@ impl Capability { }) } unsafe fn parse(reader: &R, offset: u8) -> Self { - assert_eq!(offset & 0xF8, offset, "capability must be dword aligned"); + assert_eq!(offset & 0xFC, offset, "capability must be dword aligned"); let dword = reader.read_u32(u16::from(offset)); let capability_id = (dword & 0xFF) as u8;