Message ID | 1388699609-18214-7-git-send-email-lauraa@codeaurora.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 01/02/2014 01:53 PM, Laura Abbott wrote: > is_vmalloc_addr already does the range checking against VMALLOC_START and > VMALLOC_END. Use it. FWIW, these first 6 look completely sane and should get merged regardless of what gets done with the rest.
diff --git a/arch/arm/mm/iomap.c b/arch/arm/mm/iomap.c index 4614208..4bf5457 100644 --- a/arch/arm/mm/iomap.c +++ b/arch/arm/mm/iomap.c @@ -34,8 +34,7 @@ EXPORT_SYMBOL(pcibios_min_mem); void pci_iounmap(struct pci_dev *dev, void __iomem *addr) { - if ((unsigned long)addr >= VMALLOC_START && - (unsigned long)addr < VMALLOC_END) + if (is_vmalloc_addr(addr)) iounmap(addr); } EXPORT_SYMBOL(pci_iounmap);
is_vmalloc_addr already does the range checking against VMALLOC_START and VMALLOC_END. Use it. Signed-off-by: Laura Abbott <lauraa@codeaurora.org> --- arch/arm/mm/iomap.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)