mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
Mali: bifrost: set "FMODE_UNSIGNED_OFFSET" bit in file flags of mali device file
According to commit "mmap: introduce sane default mmap limits",
just as the same as commit 18166b6556 ("Mali: midgard:
set "FMODE_UNSIGNED_OFFSET" bit in file flags of mali device file")
Change-Id: Ic03fd03c94c7ac1ae0da59d0a69c519dc5e2810c
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
This commit is contained in:
@@ -407,6 +407,7 @@ static int kbase_open(struct inode *inode, struct file *filp)
|
||||
}
|
||||
|
||||
init_waitqueue_head(&kctx->event_queue);
|
||||
filp->f_mode |= FMODE_UNSIGNED_OFFSET;
|
||||
filp->private_data = kctx;
|
||||
kctx->filp = filp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user