Fix a few incorrectly checked [io_]remap_pfn_range() calls
commita533423568c378269da0e8b48e9bfb3bcc1765bf
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Oct 2013 17:21:34 +0000 (29 10:21 -0700)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:54:22 +0000 (19 07:54 +0200)
tree5e6d78eea91da47c70946ba1562f04d4c376368e
parentdc734909be2b9689c3ef84a36c24832b32041d80
Fix a few incorrectly checked [io_]remap_pfn_range() calls

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>
(cherry picked from commit 7314e613d5ff9f0934f7a0f74ed7973b903315d1)
[wt: vm_flags were absent in mainline, Ben removed them in 3.2, but
 I kept them to minimize changes and avoid any side effect]
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/uio/uio.c
drivers/video/au1100fb.c
drivers/video/au1200fb.c