ACPICA: Add check for invalid handle in acpi_get_object_info
authorFiodor Suietov <fiodor.f.suietov@intel.com>
Fri, 4 Jul 2008 02:18:34 +0000 (10:18 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 23 Oct 2008 03:14:35 +0000 (23:14 -0400)
Return AE_BAD_PARAMETER if input handle is invalid.

http://www.acpica.org/bugzilla/show_bug.cgi?id=474

Signed-off-by: Fiodor Suietov <fiodor.f.suietov@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/namespace/nsxfname.c

index a287ed5..3cb910d 100644 (file)
@@ -253,6 +253,7 @@ acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer)
        node = acpi_ns_map_handle_to_node(handle);
        if (!node) {
                (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
+               status = AE_BAD_PARAMETER;
                goto cleanup;
        }