Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272151
b: refs/heads/master
c: 584cff5
h: refs/heads/master
i:
  272149: 52c39b9
  272147: 11d7748
  272143: 220d4d6
v: v3
  • Loading branch information
Kautuk Consul authored and Linus Torvalds committed Nov 1, 2011
1 parent 0e66aff commit 3c3387e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 09f363c7363eb10cfb4b82094bd7064e5608258b
refs/heads/master: 584cff54e1ff8f59d5109dc8093efedff8bcc375
9 changes: 3 additions & 6 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,6 @@ int mm_take_all_locks(struct mm_struct *mm)
{
struct vm_area_struct *vma;
struct anon_vma_chain *avc;
int ret = -EINTR;

BUG_ON(down_read_trylock(&mm->mmap_sem));

Expand All @@ -2579,13 +2578,11 @@ int mm_take_all_locks(struct mm_struct *mm)
vm_lock_anon_vma(mm, avc->anon_vma);
}

ret = 0;
return 0;

out_unlock:
if (ret)
mm_drop_all_locks(mm);

return ret;
mm_drop_all_locks(mm);
return -EINTR;
}

static void vm_unlock_anon_vma(struct anon_vma *anon_vma)
Expand Down

0 comments on commit 3c3387e

Please sign in to comment.