git: 9076627050c5 - stable/15 - amd64: Fix an off-by-one in the fred_ipi_handlers definition

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a75b4d7.24d65.27b51d51__47822.7537054167$1786098923$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=9076627050c572736ef8cad0363eca3c993cc8f4

commit 9076627050c572736ef8cad0363eca3c993cc8f4
Author:     Mark Johnston <[email protected]>
AuthorDate: 2026-07-21 15:29:33 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-07 10:27:33 +0000

    amd64: Fix an off-by-one in the fred_ipi_handlers definition
    
    (cherry picked from commit 55c240eada966b4595cbf93bf0641073713c5b99)
---
 sys/x86/x86/local_apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
index 72b255326680..a198e2f5295c 100644
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -2378,7 +2378,7 @@ native_lapic_ipi_vectored(u_int vector, int dest)
 void (*ipi_vectored)(u_int, int) = &native_lapic_ipi_vectored;
 #endif /* SMP */
 
-void (*fred_ipi_handlers[IPI_DYN_LAST - IPI_DYN_FIRST])(struct trapframe *);
+void (*fred_ipi_handlers[IPI_DYN_LAST - IPI_DYN_FIRST + 1])(struct trapframe *);
 
 /*
  * Since the IDT is shared by all CPUs the IPI slot update needs to be globally
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.