From 74c395cf511f4bd7952ccb9da015142193d03bb3 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 21 Sep 2006 18:56:03 +0000 Subject: Fix a sign bug in acpi_release_resource(). acpi_sysres_find() returns != NULL if the specified resource is a sub-alloc of a system resource. --- sys/dev/acpica/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/acpica') diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 7bcfdf2..1ec0afb 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1083,7 +1083,7 @@ acpi_release_resource(device_t bus, device_t child, int type, int rid, * If we know about this address, deactivate it and release it to the * local pool. If we don't, pass this request up to the parent. */ - if (acpi_sysres_find(bus, type, rman_get_start(r)) == NULL) { + if (acpi_sysres_find(bus, type, rman_get_start(r)) != NULL) { if (rman_get_flags(r) & RF_ACTIVE) { ret = bus_deactivate_resource(child, type, rid, r); if (ret != 0) -- cgit v1.1