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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Nov 2013 14:02:05 +0000 (14:02 +0000)
commit0bfd575845a118c5861ada86aba6211a5c1fc366
tree8ae3451cda3c3820eea70099507fc2c463b46e2d
parent0625072cc2e206b5fdf08db231c8cef99ac8c288
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.
[bwh: Backported to 3.2:
 - Adjust context
 - Also remove redundant vm_flags changes, removed separately upstream]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/uio/uio.c
drivers/video/au1100fb.c
drivers/video/au1200fb.c