diff options
author | jhb <jhb@FreeBSD.org> | 2006-09-21 18:56:03 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-09-21 18:56:03 +0000 |
commit | 74c395cf511f4bd7952ccb9da015142193d03bb3 (patch) | |
tree | a2ef25d613c38c6723eb867a0f65a54f708373a2 /sys/dev/acpica | |
parent | 905b41f24e61c24b1dfe22823f390f35939c8e61 (diff) | |
download | FreeBSD-src-74c395cf511f4bd7952ccb9da015142193d03bb3.zip FreeBSD-src-74c395cf511f4bd7952ccb9da015142193d03bb3.tar.gz |
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.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |