diff options
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/mm/pgtable.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c index b3b4972c2451..dfd63ce87327 100644 --- a/arch/tile/mm/pgtable.c +++ b/arch/tile/mm/pgtable.c | |||
@@ -592,12 +592,7 @@ void iounmap(volatile void __iomem *addr_in) | |||
592 | in parallel. Reuse of the virtual address is prevented by | 592 | in parallel. Reuse of the virtual address is prevented by |
593 | leaving it in the global lists until we're done with it. | 593 | leaving it in the global lists until we're done with it. |
594 | cpa takes care of the direct mappings. */ | 594 | cpa takes care of the direct mappings. */ |
595 | read_lock(&vmlist_lock); | 595 | p = find_vm_area((void *)addr); |
596 | for (p = vmlist; p; p = p->next) { | ||
597 | if (p->addr == addr) | ||
598 | break; | ||
599 | } | ||
600 | read_unlock(&vmlist_lock); | ||
601 | 596 | ||
602 | if (!p) { | 597 | if (!p) { |
603 | pr_err("iounmap: bad address %p\n", addr); | 598 | pr_err("iounmap: bad address %p\n", addr); |