The branch main has been updated by markj:

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

commit b999f2458c5af068a3b35245bf6905baa19e916c
Author:     Christos Margiolis <chris...@freebsd.org>
AuthorDate: 2023-04-28 15:11:10 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2023-04-28 15:11:10 +0000

    kinst: do not use DPCPU_ID_GET if we already have the trampoline
    
    No functional change intended.
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D39870
---
 sys/cddl/dev/kinst/amd64/kinst_isa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cddl/dev/kinst/amd64/kinst_isa.c 
b/sys/cddl/dev/kinst/amd64/kinst_isa.c
index f5fdeabd69e4..b89c3ce15a1a 100644
--- a/sys/cddl/dev/kinst/amd64/kinst_isa.c
+++ b/sys/cddl/dev/kinst/amd64/kinst_isa.c
@@ -612,7 +612,7 @@ kinst_md_deinit(void)
        CPU_FOREACH(cpu) {
                tramp = DPCPU_ID_GET(cpu, intr_tramp);
                if (tramp != NULL) {
-                       kinst_trampoline_dealloc(DPCPU_ID_GET(cpu, intr_tramp));
+                       kinst_trampoline_dealloc(tramp);
                        DPCPU_ID_SET(cpu, intr_tramp, NULL);
                }
        }

Reply via email to