summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/excreate.c
diff options
context:
space:
mode:
authorMark Langsdorf <mlangsdo@redhat.com>2021-12-22 18:57:34 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-12-27 19:01:27 +0300
commitf81bdeaf816142e0729eea0cc84c395ec9673151 (patch)
tree07a2593de23f0e05863831aac564c8dec03de676 /drivers/acpi/acpica/excreate.c
parentfc74e0a40e4f9fd0468e34045b0c45bba11dcbb2 (diff)
downloadlinux-f81bdeaf816142e0729eea0cc84c395ec9673151.tar.xz
ACPICA: actypes.h: Expand the ACPI_ACCESS_ definitions
ACPICA commit bc02c76d518135531483dfc276ed28b7ee632ce1 The current ACPI_ACCESS_*_WIDTH defines do not provide a way to test that size is small enough to not cause an overflow when applied to a 32-bit integer. Rather than adding more magic numbers, add ACPI_ACCESS_*_SHIFT, ACPI_ACCESS_*_MAX, and ACPI_ACCESS_*_DEFAULT #defines and redefine ACPI_ACCESS_*_WIDTH in terms of the new #defines. This was inititally reported on Linux where a size of 102 in ACPI_ACCESS_BIT_WIDTH caused an overflow error in the SPCR initialization code. Link: https://github.com/acpica/acpica/commit/bc02c76d Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/excreate.c')
0 files changed, 0 insertions, 0 deletions