diff options
author | Fiodor Suietov <fiodor.f.suietov@intel.com> | 2009-01-27 17:38:50 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-06 14:00:41 -0800 |
commit | 7bfa098b4d7ba5459b2a9380448bd23aa3efe033 (patch) | |
tree | 7c7bb836f2e90c783ac18158f364a41e1795f04a | |
parent | 622a88ec79861a7576949142a9191de6f52a6da2 (diff) |
ACPICA: Add check for invalid handle in acpi_get_object_info
commit 237a927682a63f02adb542dbdaafe8a81566451d upstream
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>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/acpi/namespace/nsxfname.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/namespace/nsxfname.c b/drivers/acpi/namespace/nsxfname.c index a287ed550f5..3cb910ded44 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; } |