Subject: Fix NULL pointer derference in acpi_ns_check_object_type()
From: robert.moore@intel.com
Patch-Mainline: not yet
References: kernel bug 44171
Signed-off-by: Thomas Renninger <trenn@suse.de>
---
drivers/acpi/acpica/nspredef.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-3.5-rc4-master/drivers/acpi/acpica/nspredef.c
===================================================================
--- linux-3.5-rc4-master.orig/drivers/acpi/acpica/nspredef.c
+++ linux-3.5-rc4-master/drivers/acpi/acpica/nspredef.c
@@ -638,7 +638,7 @@ acpi_ns_check_package(struct acpi_predef
/* Create the new outer package and populate it */
status =
- acpi_ns_wrap_with_package(data, *elements,
+ acpi_ns_wrap_with_package(data, return_object,
return_object_ptr);
if (ACPI_FAILURE(status)) {
return (status);