Skip to content

Commit

Permalink
Fix off-by-one error in PCI driver
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanRoyer committed Dec 20, 2023
1 parent 49c05b8 commit 73b0cb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel/pci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ macro_rules! intx_handler {
};
}

intx_handler!(pci_intx_handler_1, 1);
intx_handler!(pci_intx_handler_2, 2);
intx_handler!(pci_intx_handler_3, 3);
intx_handler!(pci_intx_handler_4, 4);
intx_handler!(pci_intx_handler_1, 0);
intx_handler!(pci_intx_handler_2, 1);
intx_handler!(pci_intx_handler_3, 2);
intx_handler!(pci_intx_handler_4, 3);

static HANDLERS: [InterruptHandler; 4] = [pci_intx_handler_1, pci_intx_handler_2, pci_intx_handler_3, pci_intx_handler_4];

Expand Down

0 comments on commit 73b0cb0

Please sign in to comment.