From: William Lee Irwin III Date: Wed, 12 Dec 2007 11:56:55 +0000 (-0800) Subject: ACPI: video_device_list corruption X-Git-Tag: v2.6.24-rc6~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98934def70b48dac74fac3738b78ab2d1a28edda;p=pandora-kernel.git 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 Acked-by: Mikael Pettersson Signed-off-by: Len Brown --- Reading git-diff-tree failed