mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
osd: osd_mmap no more locks to release [1/1]
PD#SWPL-11768 Problem: release one more mutex in osd_mmap Solution: remove mutex release in osd_mmap Verify: Verfied on p212 Change-Id: I139b80590740717ced321171ee665d0f6c0cd83f Signed-off-by: Cao Jian <jian.cao@amlogic.com>
This commit is contained in:
@@ -1543,7 +1543,6 @@ static int osd_mmap(struct fb_info *info, struct vm_area_struct *vma)
|
||||
mmio_pgoff = PAGE_ALIGN((start & ~PAGE_MASK) + len) >> PAGE_SHIFT;
|
||||
if (vma->vm_pgoff >= mmio_pgoff) {
|
||||
if (info->var.accel_flags) {
|
||||
mutex_unlock(&info->mm_lock);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -1551,7 +1550,6 @@ static int osd_mmap(struct fb_info *info, struct vm_area_struct *vma)
|
||||
start = info->fix.mmio_start;
|
||||
len = info->fix.mmio_len;
|
||||
}
|
||||
mutex_unlock(&info->mm_lock);
|
||||
|
||||
vma->vm_page_prot = vm_get_page_prot(vma->vm_flags);
|
||||
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
|
||||
|
||||
@@ -612,7 +612,6 @@ static int virt_osd_mmap(struct fb_info *info, struct vm_area_struct *vma)
|
||||
mmio_pgoff = PAGE_ALIGN((start & ~PAGE_MASK) + len) >> PAGE_SHIFT;
|
||||
if (vma->vm_pgoff >= mmio_pgoff) {
|
||||
if (info->var.accel_flags) {
|
||||
mutex_unlock(&info->mm_lock);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -620,7 +619,6 @@ static int virt_osd_mmap(struct fb_info *info, struct vm_area_struct *vma)
|
||||
start = info->fix.mmio_start;
|
||||
len = info->fix.mmio_len;
|
||||
}
|
||||
mutex_unlock(&info->mm_lock);
|
||||
|
||||
vma->vm_page_prot = vm_get_page_prot(vma->vm_flags);
|
||||
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
|
||||
|
||||
Reference in New Issue
Block a user