artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
954e2a2
)
Fix vector number check.
author
kettenis
<kettenis@openbsd.org>
Fri, 2 Feb 2024 21:13:35 +0000
(21:13 +0000)
committer
kettenis
<kettenis@openbsd.org>
Fri, 2 Feb 2024 21:13:35 +0000
(21:13 +0000)
ok kevlo@, patrick@
sys/arch/amd64/pci/pci_machdep.c
patch
|
blob
|
history
diff --git
a/sys/arch/amd64/pci/pci_machdep.c
b/sys/arch/amd64/pci/pci_machdep.c
index
41c6529
..
16d2362
100644
(file)
--- a/
sys/arch/amd64/pci/pci_machdep.c
+++ b/
sys/arch/amd64/pci/pci_machdep.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pci_machdep.c,v 1.7
8 2024/01/19 18:38:16
kettenis Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.7
9 2024/02/02 21:13:35
kettenis Exp $ */
/* $NetBSD: pci_machdep.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */
/*-
@@
-499,8
+499,8
@@
pci_intr_map_msivec(struct pci_attach_args *pa, int vec,
return 1;
mme = ((reg & PCI_MSI_MC_MME_MASK) >> PCI_MSI_MC_MME_SHIFT);
- if (vec > (1 << mme))
- return
0
;
+ if (vec >
=
(1 << mme))
+ return
1
;
ihp->tag = PCI_MSI_PIN(tag, vec);
ihp->line = APIC_INT_VIA_MSG;