diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-01-12 19:31:48 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-01-25 18:44:00 +0100 |
commit | 2e433a94dab0246fee706d18aaecd67007ead404 (patch) | |
tree | b4cab171f1629db6a816e22f9cf1af0051f781ee /drivers/dca | |
parent | e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff) |
ACPI: OSL: Fix and clean up acpi_os_read/write_port()
First, remove type casts that make acpi_os_read_port() only work on
little endian and are generally not needed.
Second, avoid clearing the memory pointed to by the value return
pointer in acpi_os_read_port() if it is the dummy on the stack (in
which case clearing it is not necessary).
Finally, prevent both acpi_os_read_port() and acpi_os_write_port()
from crashing the kernel when they receive an unsupported width
value and make them print a debug message and return an error instead.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/dca')
0 files changed, 0 insertions, 0 deletions