Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309737
b: refs/heads/master
c: 2344bec
h: refs/heads/master
i:
  309735: a069790
v: v3
  • Loading branch information
Cong Wang authored and Linus Torvalds committed Jun 1, 2012
1 parent 131dc50 commit 777933f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: e7dcd9990e42ccfc798d4eb55e2dbf9d7d434c6b
refs/heads/master: 2344bec788b097b2d1198758bd29c583812b864e
7 changes: 2 additions & 5 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2022,11 +2022,8 @@ static int map_files_d_revalidate(struct dentry *dentry, struct nameidata *nd)
if (!task)
goto out_notask;

if (!ptrace_may_access(task, PTRACE_MODE_READ))
goto out;

mm = get_task_mm(task);
if (!mm)
mm = mm_access(task, PTRACE_MODE_READ);
if (IS_ERR_OR_NULL(mm))
goto out;

if (!dname_to_vma_addr(dentry, &vm_start, &vm_end)) {
Expand Down

0 comments on commit 777933f

Please sign in to comment.