From a075a85f9b96afbb2edfad799a77d5afe8c16d44 Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 16 Mar 2021 18:31:16 +0000 Subject: [PATCH] acpi_intr_disestablish() should free its own cookie. ok kettenis@ --- sys/arch/arm64/arm64/acpi_machdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm64/arm64/acpi_machdep.c b/sys/arch/arm64/arm64/acpi_machdep.c index 721f45e3210..f03bd1f5731 100644 --- a/sys/arch/arm64/arm64/acpi_machdep.c +++ b/sys/arch/arm64/arm64/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.13 2021/03/15 22:56:48 patrick Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.14 2021/03/16 18:31:16 patrick Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -187,6 +187,7 @@ acpi_intr_disestablish(void *cookie) struct interrupt_controller *ic = aih->ih_ic; ic->ic_disestablish(aih->ih_ih); + free(aih, M_DEVBUF, sizeof(*aih)); } void -- 2.20.1