diff options
author | William Lee Irwin III <wli@holomorphy.com> | 2007-12-12 03:56:55 -0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-12-13 16:24:10 -0500 |
commit | 98934def70b48dac74fac3738b78ab2d1a28edda (patch) | |
tree | 75d97b7fb0dc47f19ad2ef5521fe69036ddfac60 /drivers/acpi/numa.c | |
parent | da8cadb31b82c9d41fc593c8deab6aa20b162d6b (diff) | |
download | linux-98934def70b48dac74fac3738b78ab2d1a28edda.tar.gz linux-98934def70b48dac74fac3738b78ab2d1a28edda.tar.bz2 linux-98934def70b48dac74fac3738b78ab2d1a28edda.zip |
ACPI: video_device_list corruption
The ->cap fields of struct acpi_video_device and struct acpi_video_bus
are 1B each, not 4B. The oversized memset()'s corrupted the subsequent
list_head fields. This resulted in silent corruption without
CONFIG_DEBUG_LIST and BUG's with it. This patch uses sizeof() to pass
the proper bounds to the memset() calls and thereby correct the bugs.
Signed-off-by: William Irwin <wli@holomorphy.com>
Acked-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/numa.c')
0 files changed, 0 insertions, 0 deletions