Better checking of duplicated interrupt handler installation.

Reviewed by:	msmith
This commit is contained in:
Mitsuru IWASAKI 2001-07-25 16:13:30 +00:00
parent 5394e6a026
commit 44df042b35
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80335

View File

@ -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);
}