ACPI: EC: Limit burst to 64 bits
commit2060c44576c79086ff24718878d7edaa7384a985
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Fri, 16 Apr 2010 19:36:40 +0000 (16 15:36 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 16 Apr 2010 19:36:54 +0000 (16 15:36 -0400)
tree6753da133e11ba121902d0dd3d71da466b9094de
parentdadf28a10c3eb29421837a2e413ab869ebd9e168
ACPI: EC: Limit burst to 64 bits

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>
drivers/acpi/acpica/exprep.c