diff options
author | Lin Ming <ming.m.lin@intel.com> | 2008-02-29 07:38:54 +0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-03-11 00:15:19 -0400 |
commit | c8d16e27a3601d1cbcdfe657eb4ff5e762019e8d (patch) | |
tree | 02d4059d80872251995fa21d4f44c47087a5855e /drivers/acpi/utilities | |
parent | 2f44bbb495dd3e6d0209eff2257438ab9c570e5b (diff) | |
download | op-kernel-dev-c8d16e27a3601d1cbcdfe657eb4ff5e762019e8d.zip op-kernel-dev-c8d16e27a3601d1cbcdfe657eb4ff5e762019e8d.tar.gz |
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 <ming.m.lin@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/utilities')
-rw-r--r-- | drivers/acpi/utilities/utobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/utilities/utobject.c b/drivers/acpi/utilities/utobject.c index 76ee766..e08b3fa 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); } |