• Linus Torvalds's avatar
    Fix a few incorrectly checked [io_]remap_pfn_range() calls · 7314e613
    Linus Torvalds authored
    Nico Golde reports a few straggling uses of [io_]remap_pfn_range() that
    really should use the vm_iomap_memory() helper.  This trivially converts
    two of them to the helper, and comments about why the third one really
    needs to continue to use remap_pfn_range(), and adds the missing size
    check.
    Reported-by: default avatarNico Golde <nico@ngolde.de>
    Cc: stable@kernel.org
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org.
    7314e613
uio.c 19.6 KB