Skip to content

Commit 97a83dd

Browse files
aeglgregkh
authored andcommitted
ACPI atomicio: Convert width in bits to bytes in __acpi_ioremap_fast()
commit 3bf3f8b upstream. 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. Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Len Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3493ce8 commit 97a83dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/atomicio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static void __iomem *__acpi_ioremap_fast(phys_addr_t paddr,
7676
{
7777
struct acpi_iomap *map;
7878

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

0 commit comments

Comments
 (0)