Skip to content
Snippets Groups Projects
Commit 26a8760b authored by jason2_chang's avatar jason2_chang Committed by Carol_Jiang
Browse files

anthias: fix build break

Change-Id: I77f8a2bf31657910e0a68232516130108ff829e5
Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/243699


Reviewed-by: default avatarjason2_chang <jason2_chang@asus.com>
Tested-by: default avatarjason2_chang <jason2_chang@asus.com>
Reviewed-by: default avatarCarol_Jiang <carol_jiang@asus.com>
parent c0ae902a
No related branches found
No related tags found
No related merge requests found
......@@ -2730,6 +2730,7 @@ static int kgsl_setup_useraddr(struct kgsl_mem_entry *entry,
struct kgsl_map_user_mem *param = data;
struct dma_buf *dmabuf = NULL;
struct vm_area_struct *vma = NULL;
int ret;
if (param->offset != 0 || param->hostptr == 0
|| !KGSL_IS_PAGE_ALIGNED(param->hostptr)
......@@ -2746,11 +2747,11 @@ static int kgsl_setup_useraddr(struct kgsl_mem_entry *entry,
if (vma && vma->vm_file) {
int fd;
ret = check_vma_flags(vma, entry->memdesc.flags);
if (ret) {
up_read(&current->mm->mmap_sem);
return ret;
}
ret = check_vma_flags(vma, entry->memdesc.flags);
if (ret) {
up_read(&current->mm->mmap_sem);
return ret;
}
/*
* Check to see that this isn't our own memory that we have
* already mapped
......
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