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:41:34 +0000 (07:41 -0700)
commitea50da76fac43bf45365862110d3c19247411896
treea13dbf25091695de28517e5389b710b2ca04f50c
parenta7fcc269cf6c6a531067a62716a661f4482d726a
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