diff options
author | James Morris <jmorris@namei.org> | 2008-06-12 01:42:35 +1000 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-07-14 15:02:02 +1000 |
commit | 2baf06df85b27c1d64867883a0692519594f1ef2 (patch) | |
tree | b4f8f2ba2c4175983fea740a607d7cc3cfef26ec /security | |
parent | e399f98224a03d2e85fb45eacba367c47173f6f9 (diff) | |
download | kernel_samsung_aries-2baf06df85b27c1d64867883a0692519594f1ef2.zip kernel_samsung_aries-2baf06df85b27c1d64867883a0692519594f1ef2.tar.gz kernel_samsung_aries-2baf06df85b27c1d64867883a0692519594f1ef2.tar.bz2 |
SELinux: use do_each_thread as a proper do/while block
Use do_each_thread as a proper do/while block. Sparse complained.
Signed-off-by: James Morris <jmorris@namei.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 6e8d0e9..4130d64 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -5196,12 +5196,12 @@ static int selinux_setprocattr(struct task_struct *p, struct task_struct *g, *t; struct mm_struct *mm = p->mm; read_lock(&tasklist_lock); - do_each_thread(g, t) + do_each_thread(g, t) { if (t->mm == mm && t != p) { read_unlock(&tasklist_lock); return -EPERM; } - while_each_thread(g, t); + } while_each_thread(g, t); read_unlock(&tasklist_lock); } |