Home
last modified time | relevance | path

Searched hist:"41315 b793e13f884cda79389f0d5d44d027e57d1" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_gem.cdiff 41315b793e13f884cda79389f0d5d44d027e57d1 Tue Jul 07 04:03:36 CDT 2015 Daniel Kurtz <djkurtz@chromium.org> drm/rockchip: use drm_gem_mmap helpers

Rather than (incompletely [0]) re-implementing drm_gem_mmap() and
drm_gem_mmap_obj() helpers, call them directly from the rockchip mmap
routines.

Once the core functions return successfully, the rockchip mmap routines
can still use dma_mmap_attrs() to simply mmap the entire buffer.

[0] Previously, we were performing the mmap() without first taking a
reference on the underlying gem buffer. This could leak ptes if the gem
object is destroyed while userspace is still holding the mapping.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>