Fix a few incorrectly checked [io_]remap_pfn_range() calls
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Oct 2013 17:21:34 +0000 (10:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2013 03:05:33 +0000 (12:05 +0900)
commitc79c7ad9d1398787f907f85afc44cf7d6623027d
tree986368272d5a595ae5214bf91f05ae31503b7c5a
parentf1e65e494c7914220ac6d87caa126114f46ac462
Fix a few incorrectly checked [io_]remap_pfn_range() calls

commit 7314e613d5ff9f0934f7a0f74ed7973b903315d1 upstream.

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: Nico Golde <nico@ngolde.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c
drivers/video/au1100fb.c
drivers/video/au1200fb.c