]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98f9167c8f6fb626e38e5d7a31d028f2b8a42a58
tree5545802c21d3560827cf7c19d0e919dfd44e3da1
parent4de095a7e368f8edd6e7280d38a7f38e38fb4032
drm/rockchip: unset pgoff when mmap'ing gems

Commit cbbb0a2537665 ("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: cbbb0a2537665 ("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