Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bf3f8b1 authored by Tony Luck's avatar Tony Luck Committed by Len Brown
Browse files

ACPI atomicio: Convert width in bits to bytes in __acpi_ioremap_fast()



Callers to __acpi_ioremap_fast() pass the bit_width that they found in the
acpi_generic_address structure. Convert from bits to bytes when passing to
__acpi_find_iomap() - as it wants to see bytes, not bits.

cc: stable@kernel.org
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent c3b92c87
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -76,7 +76,7 @@ static void __iomem *__acpi_ioremap_fast(phys_addr_t paddr,
{
{
	struct acpi_iomap *map;
	struct acpi_iomap *map;


	map = __acpi_find_iomap(paddr, size);
	map = __acpi_find_iomap(paddr, size/8);
	if (map)
	if (map)
		return map->vaddr + (paddr - map->paddr);
		return map->vaddr + (paddr - map->paddr);
	else
	else