From: Lin Ming Date: Thu, 28 Feb 2008 23:38:54 +0000 (+0800) Subject: ACPI: fix boot oops regression in thermal X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8d16e27a3601d1cbcdfe657eb4ff5e762019e8d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ACPI: fix boot oops regression in thermal Fix a memory overflow bug when copying NULL internal package element object to external. http://bugzilla.kernel.org/show_bug.cgi?id=10132 Signed-off-by: Lin Ming Signed-off-by: Zhang Rui Signed-off-by: Len Brown --- diff --git a/drivers/acpi/utilities/utobject.c b/drivers/acpi/utilities/utobject.c index 76ee766c84f9..e08b3fa6639f 100644 --- a/drivers/acpi/utilities/utobject.c +++ b/drivers/acpi/utilities/utobject.c @@ -432,7 +432,7 @@ acpi_ut_get_simple_object_size(union acpi_operand_object *internal_object, * element -- which is legal) */ if (!internal_object) { - *obj_length = 0; + *obj_length = sizeof(union acpi_object); return_ACPI_STATUS(AE_OK); }