Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166748
b: refs/heads/master
c: aa45ee8
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Sep 28, 2009
1 parent eb1fa14 commit bddfd43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90140c30a7b8c77e8872a389d48678d78e58789f
refs/heads/master: aa45ee8fc0ee87c1711b5fe8eb3556d06530c39e
5 changes: 4 additions & 1 deletion trunk/arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,14 @@ static int bad_syscall(int n, struct pt_regs *regs)
static inline void
do_cache_op(unsigned long start, unsigned long end, int flags)
{
struct mm_struct *mm = current->active_mm;
struct vm_area_struct *vma;

if (end < start || flags)
return;

vma = find_vma(current->active_mm, start);
down_read(&mm->mmap_sem);
vma = find_vma(mm, start);
if (vma && vma->vm_start < end) {
if (start < vma->vm_start)
start = vma->vm_start;
Expand All @@ -432,6 +434,7 @@ do_cache_op(unsigned long start, unsigned long end, int flags)

flush_cache_user_range(vma, start, end);
}
up_read(&mm->mmap_sem);
}

/*
Expand Down

0 comments on commit bddfd43

Please sign in to comment.