smb: client: get rid of smb311_posix_query_path_info()
[linux-2.6-block.git] / fs / exec.c
index 4aa19b24f2810a428a91c30ab96f931b5f505954..ee43597cb45311bec9e3bc03269fe62b799a2f57 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1578,11 +1578,10 @@ static void check_unsafe_exec(struct linux_binprm *bprm)
         * will be able to manipulate the current directory, etc.
         * It would be nice to force an unshare instead...
         */
-       t = p;
        n_fs = 1;
        spin_lock(&p->fs->lock);
        rcu_read_lock();
-       while_each_thread(p, t) {
+       for_other_threads(p, t) {
                if (t->fs == p->fs)
                        n_fs++;
        }