From: Fiodor Suietov Date: Fri, 4 Jul 2008 02:18:34 +0000 (+0800) Subject: ACPICA: Add check for invalid handle in acpi_get_object_info X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=237a927682a63f02adb542dbdaafe8a81566451d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ACPICA: Add check for invalid handle in acpi_get_object_info Return AE_BAD_PARAMETER if input handle is invalid. http://www.acpica.org/bugzilla/show_bug.cgi?id=474 Signed-off-by: Fiodor Suietov Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Andi Kleen Signed-off-by: Len Brown --- diff --git a/drivers/acpi/namespace/nsxfname.c b/drivers/acpi/namespace/nsxfname.c index a287ed550f54..3cb910ded44a 100644 --- a/drivers/acpi/namespace/nsxfname.c +++ b/drivers/acpi/namespace/nsxfname.c @@ -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; }