Skip to content
Commit a8594f20 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Mark Yao
Browse files

drm/rockchip: unset pgoff when mmap'ing gems

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

 ("ARM: 8426/1: dma-mapping: add missing range check in dma_mmap()")
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent d7b53fd9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment