]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI: EC: Limit burst to 64 bits
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Fri, 16 Apr 2010 19:36:40 +0000 (15:36 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:48:03 +0000 (07:48 -0700)
commitf7c3b8d3f3bce2c0972165fc65721b735e60de6d
treee1909983ccbb8281049b68ac17f4086e8b80623f
parent3064d4245eecba89cc2eb2ce3cf89fd5ffe060de
ACPI: EC: Limit burst to 64 bits

commit 2060c44576c79086ff24718878d7edaa7384a985 upstream.

access_bit_width field is u8 in ACPICA, thus 256 value written to it
becomes 0, causing divide by zero later.

Proper fix would be to remove access_bit_width at all, just because
we already have access_byte_width, which is access_bit_width / 8.
Limit access width to 64 bit for now.

https://bugzilla.kernel.org/show_bug.cgi?id=15749
fixes regression caused by the fix for:
https://bugzilla.kernel.org/show_bug.cgi?id=14667

Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/acpi/acpica/exprep.c