drm/rockchip: unset pgoff when mmap'ing gems
authorHeiko Stuebner <heiko@sntech.de>
Mon, 9 Nov 2015 19:52:43 +0000 (20:52 +0100)
committerMark Yao <mark.yao@rock-chips.com>
Wed, 2 Dec 2015 01:13:17 +0000 (09:13 +0800)
commita8594f20cafadb6ba58f915dea5f2c94a9333b1a
tree5545802c21d3560827cf7c19d0e919dfd44e3da1
parentd7b53fd9e37a4127077720f4fef10330e284107c
drm/rockchip: unset pgoff when mmap'ing gems

Commit 371f0f085f629 ("ARM: 8426/1: dma-mapping: add missing range check
 in dma_mmap()") introduced offset-checking for mappings, which collides
with the fake-offset the drm sets for gems.

Other drm-drivers set this offset to 0 before doing the mapping, so
this looks like the correct way to go for rockchip as well.

Fixes: 371f0f085f629 ("ARM: 8426/1: dma-mapping: add missing range check in dma_mmap()")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/gpu/drm/rockchip/rockchip_drm_gem.c