From: Marek Szyprowski Date: Mon, 3 Dec 2018 13:37:01 +0000 (+0100) Subject: LOCAL / GPU: ARM: Add proper flag handle extended mmap offset operations X-Git-Tag: accepted/tizen/unified/20190330.030053~193 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3dab7611436ae95813f6741bf7343ff1862c508c;p=platform%2Fkernel%2Flinux-exynos.git LOCAL / GPU: ARM: Add proper flag handle extended mmap offset operations Since stable commit 16d7ceb04b55 ("mmap: introduce sane default mmap limits"), drivers, which use mmap offset needs to set additional flag in ->open() call, so set this flag in MALI drivers too. Signed-off-by: Marek Szyprowski --- diff --git a/drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase_core_linux.c b/drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase_core_linux.c index 3cc6214..bed124e 100644 --- a/drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase_core_linux.c +++ b/drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase_core_linux.c @@ -1372,6 +1372,7 @@ static int kbase_open(struct inode *inode, struct file *filp) init_waitqueue_head(&kctx->event_queue); filp->private_data = kctx; + filp->f_mode |= FMODE_UNSIGNED_OFFSET; kctx->filp = filp; kctx->infinite_cache_active = kbdev->infinite_cache_active_default;