Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184894
b: refs/heads/master
c: 86fc80f
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and James Morris committed Dec 9, 2009
1 parent 61666dd commit 0e1636f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 67fa4880c5e059428392ca6f7c2f9c38e8546fea
refs/heads/master: 86fc80f16e8a2449d5827bf1a9838b7fd9f70097
4 changes: 2 additions & 2 deletions trunk/kernel/capability.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ static inline int cap_get_target_pid(pid_t pid, kernel_cap_t *pEp,
if (pid && (pid != task_pid_vnr(current))) {
struct task_struct *target;

read_lock(&tasklist_lock);
rcu_read_lock();

target = find_task_by_vpid(pid);
if (!target)
ret = -ESRCH;
else
ret = security_capget(target, pEp, pIp, pPp);

read_unlock(&tasklist_lock);
rcu_read_unlock();
} else
ret = security_capget(current, pEp, pIp, pPp);

Expand Down

0 comments on commit 0e1636f

Please sign in to comment.