From: James Morris Date: Wed, 11 Jun 2008 15:42:35 +0000 (+1000) Subject: SELinux: use do_each_thread as a proper do/while block X-Git-Tag: v2.6.27-rc1~1109^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2baf06df85b27c1d64867883a0692519594f1ef2;p=linux-2.6-omap-h63xx.git 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 Acked-by: Stephen Smalley --- diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 6e8d0e91c0c..4130d64359a 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); }