projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm: rcu-protected get_mm_exe_file()
[linux-2.6-block.git]
/
kernel
/
futex.c
diff --git
a/kernel/futex.c
b/kernel/futex.c
index 2a5e3830e953b72cca4aeac4ec537e276f0f355b..2579e407ff67d039106207f78a466f824e515db6 100644
(file)
--- a/
kernel/futex.c
+++ b/
kernel/futex.c
@@
-900,7
+900,7
@@
static int attach_to_pi_owner(u32 uval, union futex_key *key,
if (!p)
return -ESRCH;
if (!p)
return -ESRCH;
- if (
!p->mm
) {
+ if (
unlikely(p->flags & PF_KTHREAD)
) {
put_task_struct(p);
return -EPERM;
}
put_task_struct(p);
return -EPERM;
}