]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/sh/mm/ioremap_32.c
sh: fix P4 iounmap() pass-through
[linux-2.6-omap-h63xx.git] / arch / sh / mm / ioremap_32.c
index 32946fba123e597046a7316f49150a1b6d3be8ea..8dc77026a0b533ce52aee8959c807bbdbfc505b5 100644 (file)
@@ -119,7 +119,7 @@ void __iounmap(void __iomem *addr)
        unsigned long seg = PXSEG(vaddr);
        struct vm_struct *p;
 
-       if (seg < P3SEG || seg >= P3_ADDR_MAX || is_pci_memaddr(vaddr))
+       if (seg < P3SEG || vaddr >= P3_ADDR_MAX || is_pci_memaddr(vaddr))
                return;
 
 #ifdef CONFIG_32BIT