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 | |
parent | 2f44bbb495dd3e6d0209eff2257438ab9c570e5b (diff) | |
download | linux-c8d16e27a3601d1cbcdfe657eb4ff5e762019e8d.tar.gz linux-c8d16e27a3601d1cbcdfe657eb4ff5e762019e8d.tar.bz2 linux-c8d16e27a3601d1cbcdfe657eb4ff5e762019e8d.zip |
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')
-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 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); } |