summaryrefslogtreecommitdiff
path: root/drivers/hwtracing/intel_th/pci.c
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2018-09-18 16:10:48 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-18 16:08:38 +0200
commitebe4582281d6e90972f057318a6edea14810ea48 (patch)
tree4da6cbfc9082c78cb4df7a6a8dcfa040d9770cbf /drivers/hwtracing/intel_th/pci.c
parent8801922cd94c918e4dc3a108ecaa500c4d40583f (diff)
intel_th: Fix resource handling for ACPI glue layer
The core of the driver expects the resource array from the glue layer to be indexed by even numbers, as is the case for 64-bit PCI resources. This doesn't hold true for others, ACPI in this instance, which leads to an out-of-bounds access and an ioremap() on whatever address that access fetches. This patch fixes the problem by reading resource array differently based on whether the 64-bit flag is set, which would indicate PCI glue layer. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Fixes: ebc57e399b8e ("intel_th: Add ACPI glue layer") CC: stable@vger.kernel.org # v4.17+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/intel_th/pci.c')
0 files changed, 0 insertions, 0 deletions