diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2001-07-25 16:13:30 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2001-07-25 16:13:30 +0000 |
commit | 1eb9c3ef3151d761ebcb6b365ec2c4e126ec31ef (patch) | |
tree | 1a9a1641256e4efa38aa0e9c61c4d81b6e96b7c4 | |
parent | 021ebeaa900b648ddf12f44bfaabfe4b46e09db9 (diff) | |
download | FreeBSD-src-1eb9c3ef3151d761ebcb6b365ec2c4e126ec31ef.zip FreeBSD-src-1eb9c3ef3151d761ebcb6b365ec2c4e126ec31ef.tar.gz |
Better checking of duplicated interrupt handler installation.
Reviewed by: msmith
-rw-r--r-- | sys/dev/acpica/Osd/OsdInterrupt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/Osd/OsdInterrupt.c b/sys/dev/acpica/Osd/OsdInterrupt.c index c45564f..da2e649 100644 --- a/sys/dev/acpica/Osd/OsdInterrupt.c +++ b/sys/dev/acpica/Osd/OsdInterrupt.c @@ -66,7 +66,7 @@ AcpiOsInstallInterruptHandler(UINT32 InterruptNumber, OSD_HANDLER ServiceRoutine return_ACPI_STATUS(AE_BAD_PARAMETER); if (ServiceRoutine == NULL) return_ACPI_STATUS(AE_BAD_PARAMETER); - if (InterruptHandler != NULL) { + if (InterruptHandler != NULL && InterruptHandler != ServiceRoutine) { device_printf(sc->acpi_dev, "can't register more than one ACPI interrupt\n"); return_ACPI_STATUS(AE_BAD_PARAMETER); } |