fbdev: vfb: simplify memory management
authorVladimir Murzin <vladimir.murzin@arm.com>
Mon, 15 Aug 2016 10:10:32 +0000 (11:10 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 7 Sep 2016 09:06:53 +0000 (12:06 +0300)
commit220be8d0e1729fc6f4bb10b009393cd0c1f5574e
tree94e526fc4d1fcd1361e753c6a32b8e389541887a
parent95cc44a04f4c364affbc194820ad4ca5ab88f30c
fbdev: vfb: simplify memory management

Substitute home-brewed memory management for framebuffer memory with what
core mm provide us: vmalloc_32_user() and remap_vmalloc_range()

The former is designed to allocate virtually contiguous area which is
32bit addressable and zeroed so it can be mapped to userspace without
leaking data. The latter does the similar job to remap_pfn_range() but
additionally validate vmalloc'ed area and it's size.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/vfb.c